Format value "FILENAME": $if($eql(%discnumber%,1/1),$num(%track%,2) $replace(%title%,?,,/,,",,:,,*,),$num(%discnumber%,1)-$num(%track%,2) $replace(%title%,?,,/,,",,:,,*,_))
Format value "_FILENAME": $left(%_filename%,36)
Format value "_FILENAME": $trim(%_filename%)
I'm constantly changing my mp3's with better rips/encodes. Since I already have all my mp3s in my iTunes library, I need to have the exact filenames when exchanging the mp3's so I don't have to tell iTunes to search for the correct ones. I'm letting iTunes rename and sort all my mp3's itself.
First off, I just want to inform that all the mp3's that will be replacing the old ones, have the exact same tags as the older ones. No differences there.
So, what I'm looking for is to do an action in Mp3tag, that will rename the new mp3's with the same routine iTunes does. Then I'll just delete the old ones, and move the new ones to the same folder, un-check the songs in iTunes and recheck them to update the info in iTunes.
Alright, this is the action I have at the moment:
Format value "_FILENAME": %track% %title%
Format value "_FILENAME": $left(%_filename%,36)
[kinda solved]*Standard albums with discnumber 1/1 should be renamed without discnumber in front of the tracknumber in the filename.
[solved]*All the filenames cannot contain more than 36 characters (32+4).
[solved]*What I'm looking for now is how to replace certain characters from the %title% tag, such as / ? and ", instead they should be replaced in the filename by an underline (_).
[solved]*I'll need a somewhat different action for albums with multiple discs, they need the discnumber in front of the tracknumber. Example:
1-01 Take On Me.mp3
1-02 Train Of Thought.mp3
and
2-01 Take On Me [Demo Version].mp3
2-02 Train Of Thought [Demo Version].mp3
etc.
[solved]*Another thing I need to do as well is the results of certain title schemes, how the end of the filename is renamed. In example if a song is above 32 characters, and the 32nd character is a space ( ), this will be discarded in the filename by iTunes.
Example for discnumber 1 track 14 and title:
Hunting High And Low [Extended Mix]
will be renamed to:
1-14 Hunting High And Low [Extended.mp3
instead of
1-14 Hunting High And Low [Extended .mp3
Hope y'all understand, and maybe we can have some sort of summary in the end of how to rename files just as iTunes does.
If it's impossible to achieve all this with mp3tag, I guess I'll just keep with my regular routing, which is with renaming with Tag&Rename and then use A.F.5 rename your files to shorten the characters. But it would be really sweet to do everything with Mp3tag in one action.
