It will also add the discnumber if it is more than one. It has some other specialities, such as creating the album folder only if there is an album artist, and setting the artist name in front of the track title if the album contains tracks from different artists. If you don’t want this all and really just albumartist/album/tracktitle then you could reduce it to:
$if2(%albumartist%,%artist%)/%album%/%title%
Nice and simple. Now for the file extension there is a variable %_extension%. To have a folder with the extension name just add it to the beginning of the script separated by a slash for the folder separator:
If this does not solve you issue, could you report details on a crash by running Picard from command line with the “-d” command line option, make the application crash and post the output on the command line here?
If you are on Windows, make sure you have installed Picard using the installer. Then open a Windows command prompt and start Picard with:
I will gladly. However my personal time is very limited. It is why I didn’t sit learn the script language. It may be a few days before I can post again.
I apologize if this is covered somewhere and I missed it. I’m using your script and would like to have it sort output so for an album with multiple file types they sort into separate folders. When I run your script it lumps all the tracks into one folder by album name.
my desired output would be
artist/album/flac/ (all flac files for that album)
artist/album/mp3/ (all mp3 files for that album)
This is primarily to easily separate the mp3. I would also be okay with a sort that split collection to:
Flac/artist/album/tracks
MP3/artist/album/tracks
MP3 files are used for mobile devices only. Which allows separate collection. Thanks
The %_extension% variable used in the script is supposed to hold the file extension and is used in the above scripts to create separate folders. Can you maybe share the exact script you are using?
I’m using RDSwift’s script. I ran it on a test folder that has both the flac and mp3 together. It saved to folder for album name. I imagine an if statement will allow the output if the %_extension% variable can properly detect the file type. I looked through the script briefly and can look closer later on to see if there is a place to logically put such an “if” … Thanks
That’s odd because it should have created a new full path beginning with the file extension in upper case (with the initial and other stuff below that).
Alternately, you could try adding a new line after Line 411 containing:
Unfortunately it still dropped into one folder not setting up a sub folder or different folder for file type. I will look at this tonight. I really appreciate your response. It may well be error on my end.
I updated the script on my repo to include an option to put the files in extension-specific subdirectories under the album directory. It definitely works because I tested it here. To enable this option, you need to change Line 87 of the updated script from:
I hate to be a pain one last question related to the output as it moves the files. Is it possible to have the artist listed by first name?
Example: ~ R ~\Reba McEntire {date} album title\ …
I tried getting it to sort artist by first but I was either in the wrong part of your script or just didn’t get the parameters correct. It would also be helpful to have option for “the” (“The Rolling Stones” … “Rolling Stones”, The … ignore “the” - “Rolling Stones”. I know that dropping “the” is not technically correct.
I did but I realized later I made an error and probably didn’t save the change - very difficult day with medical news for my sister and I shouldn’t have been trying to sort this at same time. I suspect his original answer would have worked without need to amend the script as he did.