I'm trying to make a few export configs for backing up my tags. Since I tag MP3s and FLACs differently, I'll be making two backup .txt files for every album, one in FLAC and one in MP3 format.
Now, I'm trying to figure out how to export MP3's %track% and %discnumber% tags in format #/# to %track% & %tracktotal% and %discnumber% & %disctotal%.
One more thing – tricky, again, because of MP3's "#/#" format in %discnumber%. Would it be possible to automatically add "(Disc #)" to name of exported file if there is more than 1 disc?
I want to add "(Disc #)" to the name of the exported file if the album I'm exporting has more than 1 disc. For example "Tag backup - Album (Disc 2).txt".
This is pretty easy to do with FLAC because it keeps disc number and disc total in separate tags. For example:
Tag backup - %album%$ifgreater(%disctotal%,1, (Disc %discnumber%),).txt
But MP3 stores disc info in a single %discnumber% tag, in the format x/y, where x is current disc, and y is total number of discs.
So, I first have to check if y is greater than 1, and if it is, add " (Disc x)" to the filename.
I noticed that you added another string to your previous post,
$ifgreater($num($trimLeft($trimLeft(%DISCNUMBER%,'0123456789'),'/'),1),1,' (Disc '$num($trimRight($trimRight(%DISCNUMBER%,'0123456789'),'/'),1)')',)
which does get y, and is exactly what I needed.
Thanks.