Tag -> Filename


#1

Hi,

I have read the FAQ, but haven't found the answer, so I try to ask it.

I've been using Mp3Tag for a long time. It's a beautiful program. One thing keeps me crazy. If I have several versions of a song with different duration (a remix for example), I cannot automatically generate filename from tag, because the file already exists. For the same reason I cannot shorten names to 64 characters.

I have to read the error messages (I rename dozens of files sometimes) and rename files by hand, changing their name according to tag and adding (2), (3) etc to the filename. It's ok to rename 2-3 files, but I have a lot of files.

Is there a way, maybe through Regular Expressions, to check if the file already exists and append a (2), (3), (4) to the end? File manager Total Commander has a function to auto rename copied files. I haven't found anything similar in Mp3Tag options. Maybe I overlooked such a function?

Thanks in advance for help.


#2

You can use the Mp3tag system variable %_COUNTER%.
When tag formatting a user tag field with %_COUNTER% the content of the tag field is set to "1" when first called, second call gives "2" and so on. With some scripting logic around you might create an auto numbering method. Try it out and come back to show us your result!

DD.20090821.0835.CEST


#3

I registered JUST to post my answer to this. I had several files that after I auto tagged, it said "file already exists" and gave it a "00 - .mp3" tag. Wow annoying. The root of all of this is a bad ID3 tag, as noted in one of the fields in Mp3tag. Simply filter you music (in my case by 00 - .mp3) and REMOVE alllllll tag information from those files. And what I did was use winamp or whatever program you want to re-tag the files. After this attempt the rename. After that you should have good files. Worked for me.