Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: EAC: %cdnumber%-%tracknr2% %title% only when %totalcd%>1 ? (Read 3872 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

EAC: %cdnumber%-%tracknr2% %title% only when %totalcd%>1 ?

Hello,

at the moment I use the following syntax for naming the tracks:

%albumartist%\%year% - %albumtitle% (FLAC)\%cdnumber%-%tracknr2% %title%

What can I do, to use %cdnumber%- only if %totalcd% >1 resulting in the cdnumber at the beginning of the trackname but only when I have an album with more than one cd?

For example:

Album with 2 cds => %totalcd%=2 => %albumartist%\%year% - %albumtitle% (FLAC)\%cdnumber%-%tracknr2% %title%

Album with 1 cd => %totalcd%=1 => %albumartist%\%year% - %albumtitle% (FLAC)\%tracknr2% %title%


Any ideas?


Kind regards

TSCH

EAC: %cdnumber%-%tracknr2% %title% only when %totalcd%>1 ?

Reply #1
EAC has a few 'conditional' placeholders that can be used for external compression 'Additional command line options'

but no custom 'conditions' for file naming that I'm aware of.

Other programs such as CUERipper (part of CUETools) and foobar2000 can do this.
For CUERipper you would need something like (foobar2000 may differ slightly)
%artist%\[%year% - ]%album% (FLAC)\$ifgreater($max(%discnumber%,%totaldiscs%),1,%discnumber%-,)%tracknumber% %title%

or maybe just

%artist%\[%year% - ]%album% (FLAC)\$ifgreater(%totaldiscs%,1,%discnumber%-,)%tracknumber% %title%

The first example would still add the disc number if %discnumber% is 2 or more and %totaldiscs% is missing.
Edit: %disctotal%, %albumartist% and %album artist% may also be used as placeholders.
korth

EAC: %cdnumber%-%tracknr2% %title% only when %totalcd%>1 ?

Reply #2
Thanks a lot.

I contacted the author of EAC, you're right, there are no custom 'conditions' for file naming included or planed in the future.

As workaround I now use a profile for single-cd-albums and another one for 2 and more cds.


Kind regards

TSCH