What is
%TRACK_DISC_NUMBER%
for a thing? I can't find it in the component help. What is it supposed to mean? As a singular tag it only returns a question mark. Am I missing something?
Can confirm that - as a single tag, %TRACK_DISC_NUMBER% returns a question mark ...
I would suggest for DISCNUMBER
$ifgreater(%RELEASE_TOTAL_DISCS%,1,%DISC_NUMBER%,)
and for TOTALDISCS
$ifgreater(%RELEASE_TOTAL_DISCS%,1,%RELEASE_TOTAL_DISCS%,)
and maybe for TRACKNUMBER
$num(%TRACK_DISC_TRACK_NUMBER%,1)
eliminating the leading zero ... a matter of personal taste, of course.
Hey PeteG - thanks a lot, this works like a charm! =)
I entered a 0 to get it exactly as it used to be (for example 02.07 for track seven of disc 2).
WOn't work for a ten disc box though ...
$ifgreater(%RELEASE_TOTAL_DISCS%,1,0%DISC_NUMBER%,)
Now I have one problem left to solve before I can start tagging as I used to:
I miss the compilation checkbox foo discogs used to have.
I would need foo discogs to do the following:
- Check if release has a format description saying "Compilation"
- If yes, add an ALBUM_ARTIST tag saying "Various Artists" (not just "Various") AND add an COMPILATION tag saying "1"
- If no, it should NOT add any tag for ALBUM_ARTIST and COMPILATION at all.
Any hints? =)
I found this solution (which is also described in the examples of the syntax help, but the code is missing there) by zoomorph, but it doesn't work ... this gives me very weird results, namely putting the different artists in the "album artist" position instead of using "Various" and replacing it with "VA" there.
For people who wanted to tag compilations with "Various" as the artist as Discogs always used to, there's no exact solution but here an Album Artist tag string to approximate it:
$multi_if($multi_and($any($contains($first(%<<RELEASE_FORMATS_DESCRIPTIONS>>%),$array(Compilation,Mixed))),$multi_greater($length($unique($flatten(%<<RELEASE_TRACKS_ARTISTS_NAME>>%))),$div(%RELEASE_TOTAL_TRACKS%,2)),$multi_greater($length($unique($flatten(%<<RELEASE_TRACKS_ARTISTS_REAL_NAME>>%))),$div(%RELEASE_TOTAL_TRACKS%,2))),VA,$joinnames($multi_replace(%<RELEASE_ARTISTS_NAME>%,'Various','VA'),%<RELEASE_ARTISTS_JOIN>%))