Rename Folders with MP3 or FLAC indicator

I want to rename Folder/Directory in the format

ABC-1990-Absolutely [FLac] [17] [Y]

%albumartist% - [%year% - ]%album% %extension% %_total_files% %filetype% %_covers% %_filename_ext%

I dont know whether i need filename_ext or filetype to indicate MP3 or FLAC.

I also tried '[]' to get items in square brackets without sucess.

How can i make covers a yes or no rather than a number?

What does %_counter% do?

Thanks for any assistance.

  1. Read the Mp3tag Help Manual.

  2. Use this Testfile:
    richmail.mp3 (2.08 KB)

  3. Try the following example, which changes the filename, to understand the principle.

Convert | Tag - Filename | ALT+1

Select format string

Format string:

%ALBUMARTIST%'-'%YEAR%'-'%ALBUM%' ['%_extension%'] ['%TOTALTRACKS%'] '$ifgreater(%_covers%,0,'[Y]','[N]')

Preview
ABC-1990-Absolutely [mp3] [17] [N].mp3


  1. Then try again to change the Foldername.

Convert | Tag - Filename | ALT+1

Select format string

Format string:
'..'%albumartist%'-'%year%'-'%album%' ['%_extension%'] ['%totaltracks%'] '$ifgreater(%_covers%,0,'[Y]','[N]')''%_filename%

Preview
..\ABC-1990-Absolutely [mp3] [17] [N]\richmail.mp3

Example:
"O:\TEST\T1\richmail.mp3" ->
"O:\TEST\ABC-1990-Absolutely [mp3] [17] [N]\richmail.mp3"

DD.20110110.2033.CET


richmail.mp3 (2.08 KB)

Action: Format Value
Field: _DIRECTORY
Formatstring:
%albumartist%-%year%-%album% '['%_extension%']' '['%_total_files%']' '['$if($grtr(%_covers%,0),Y,N)']'

or

%albumartist%-%year%-%album% '['%_extension%']' '['%_total%']' '['$if($grtr(%_covers%,0),Y,N)']'

the first formatstring gets you the number of total files from the number of files you have selected. the second gets it from the tracknumber if it is stored in the format tracknumber/totaltracks e.g. 1/17 , 2/17 ,...

it's %_extension%

its '['...']'

$if($grtr(%_covers%,0),Y,N) gives you Y for one or more covers and N for no cover.

%_counter% gives every file a new number at the same field if you format more files. It's useless if you format the directory because in this special case it's always the first file from which the values are taken, so the counter would always be 1 (unless you format more than one folder ins one go). It can be usefull if you want the titles to be called simply track 1, track 2, track 3, you would use "track %_counter%" in this case.

here is a oversight of the placeholders:
http://help.mp3tag.de/options_export.html#placeholder

Pone and DevlevD

Thank you both very much.

I am going blind and with the date shown if varible, i missed the second ' . Anyhow your examples were excellent.

The clarification of %_extension% and the difference between total and totaltracks was great. This sort of stuff should be explained in the user guides. You saved me another 4 hours of searching and eye killing strain.

Anyhow my new folder specification is

%albumartist% - [%year% - ]%album% '['$upper(%_extension%)']' '['%_total_files%']'['['%_total%']'] '['$if($grtr(%_covers%,0),Y,N)']'

ABC - Absolutely [FLAC] [17][17] [Y]

And i never needed the counter here at all.

Thanks again :rolleyes: :rolleyes: