Help with folder structure? (+ script for you, to export a html albumlist ^^)

Use this forum for everything concerning script usage
Post Reply
drakedrake
Newbie
Newbie
Posts: 5
Joined: Thu Mar 17, 2011 9:13 pm

Help with folder structure? (+ script for you, to export a html albumlist ^^)

Post by drakedrake »

Hi ^^

First of, I have attached a script, to export an awesome (I think ;P) list of albums grouped by artists, in html, and styled with css ^^ hope you like it :)
Image
And now my problem xD
I use Tag & Rename to tag my files, and then The Godfather to rename, and move them to to an organized folderstructure.
But I would like to do it in a way I can't make a script for myself :\ so I hope you kan help me xD

How I would like the folder structure to be:
%album_artist%\[%year%-%month%-%day%] %album%\%nr%. %title%.ext

Billy Ray Cyrus\[2003-01-01] The Other Side\01. Face Of God.mp3

Now the problems:
I use the tag "Album Artist", so iTunes will sort cd's with various artist, with the "Album Artist" instead of the individual artist (that's a mess -.-)
But I can't se how I can get The Godfather to use that?

And second, I can't find a way to tag the full release day, and not only the year? And then use it in a script?


Really hope someone can help ^^ I think this program is just awesome, with the posibillity of scripting, but this one is just a little over my skill level :\

Best Regards
Martin ^^
Attachments

[The extension has been deactivated and can no longer be displayed.]


User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: Help with folder structure? (+ script for you, to export a html albumlist ^^)

Post by jtclipper »

Send me a couple of your files to have a look
Dimitris

drakedrake
Newbie
Newbie
Posts: 5
Joined: Thu Mar 17, 2011 9:13 pm

Re: Help with folder structure? (+ script for you, to export a html albumlist ^^)

Post by drakedrake »

I've send you a message ^^

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: Help with folder structure? (+ script for you, to export a html albumlist ^^)

Post by jtclipper »

Here is the basic idea, use the gTag variable and set the levels with the custom fields you desire.
The problem is that no tag field contains the date field exactly as you want it.

Code: Select all

{!%A|[%Y] %L}
// the first line contains the folder structure and is dynamically used upon script execution, it is optional

program Custom_folder_rules;

begin

  //loop trough entries and adjust values as needed
  re_Init( false );
  repeat
     re_LoadFile; // use this so we can use the gTag variable

     re_setLevel( 1, gTag.Band ); //overwrite artist with album artist for 1st level

  until not re_Skip;


end.
Dimitris

drakedrake
Newbie
Newbie
Posts: 5
Joined: Thu Mar 17, 2011 9:13 pm

Re: Help with folder structure? (+ script for you, to export a html albumlist ^^)

Post by drakedrake »

Thanks for your reply ^^ just this is indispensable to sort cd's with various artists ^^

But if there isn't a field for the full release time, is it possible to use another field for that information?
In tag & rename, there is a field "Release Time"? or just use the comment field for that information? And then use that field in the script for the folder structure?

\Martin

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: Help with folder structure? (+ script for you, to export a html albumlist ^^)

Post by jtclipper »

There are a lot of fields you can use and there is a Date field and a Time field in the ID3v2 format you can use those easily
Dimitris

drakedrake
Newbie
Newbie
Posts: 5
Joined: Thu Mar 17, 2011 9:13 pm

Re: Help with folder structure? (+ script for you, to export a html albumlist ^^)

Post by drakedrake »

Tag & Rename can't edit the date and time fields :\
I think I'll just use the "Release Time" field, but do you know the gTag for that field?

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: Help with folder structure? (+ script for you, to export a html albumlist ^^)

Post by jtclipper »

Should be time but its easy to find out what field is used by any software
Dimitris

drakedrake
Newbie
Newbie
Posts: 5
Joined: Thu Mar 17, 2011 9:13 pm

Re: Help with folder structure? (+ script for you, to export a html albumlist ^^)

Post by drakedrake »

I have tried with:
re_setLevel( 2, gTag.Time );
re_setLevel( 2, gTag.ReleaseTime );
re_setLevel( 2, gTag.TDRL );

but they all say it's a "Unknown identifier" :\

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: Help with folder structure? (+ script for you, to export a html albumlist ^^)

Post by jtclipper »

Try filling in the field gTag.Description and fill in the content group description field or you can use any other field that is supported in gtag and ID3v2

Code: Select all

property OrigAlbum: string;
property OrigArtist: string;
property OrigYear: string;
property Performer: string;
property Description: string;
property Subtitle: string read
property ContentGroup: string;
property Conductor: string read;
property MixArtist: string;
property MediaType: string;
property Publisher: string;
property EncoderSettings: string;

Dimitris

Post Reply