Original date + deluxe / remaster date

I think I would do it a tiny bit differently as:

$noop(ARTIST)
$if2(%albumartist%,%artist%)/

$noop(ORIGINAL DATE)
$set(o_year,$if2(%originalyear%,0000))
[%o_year%] 

$noop(ALBUM TITLE)
$if(%albumartist%,%album%)

$noop(ALBUM REISSUE YEAR)
$if(%date%,$set(r_year,$year(%date%))$if($ne(%o_year%,%r_year%), [%r_year% Reissue])

$noop(FILE TYPE FLAC OR MP3)
$if($in($lower(%_extension%),flac), [FLAC],$if($in($lower(%_extension%),mp3), [MP3]))/

$noop(TRACK NAME)
$if($gt(%totaldiscs%,1),%discnumber%)$num(%tracknumber%,2) - %title%

This way it only includes the “[year Reissue]” part if there is a year on the release and it’s different from the original year. I also moved the space between the reissue year and file type to avoid having the directory ending with a space in the (rare) case that the file extension isn’t “flac” or “mp3”, and made the check case-insensitive, and moved the “mp3” check into the “else” clause of the “flac” so that it is only executed if the extension isn’t “flac”. Note that having the file type as part of the album directory can be a bit dangerous in that it will split up your album into different directories if there are music files with different extensions in the same album.

I noticed that you don’t have a default value for the album name if there is no %albumartist% tag. Likely not a problem, but in that case you don’t need to check whether or not %albumartist% is empty.

Note that this is off the top of my head and I haven’t tested it. Hopefully I haven’t mismatched brackets or something else stupid. :wink:

18:69 unexpected end of script

one more ) at the end of the first if in the album reissue year fixes that, if I’m correct?

$if(%date%,$set(r_year,$year(%date%)))$if($ne(%o_year%,%r_year%), [%r_year% Reissue])

Actually, it should be at the end of that line.

$if(%date%,$set(r_year,$year(%date%))$if($ne(%o_year%,%r_year%), [%r_year% Reissue]))

A follow up. The Picard docs note the basic tag discsubtitle, but I’ve seen disctitle used.

So the former is correct? Is this type of tag common and worth including (if I’m trying to flag different release types like remasters, etc), or rarely used?

I had the latter option worked up as a potential part of my script, so I’m wondering if I have the wrong tag, or if I will even see much return from either version of this tag.

$noop(ALBUM VERSION - DELUXE, SPECIAL EDITION, ETC.)
$if(%disctitle%, [%disctitle%])

This table may be useful. It is the common tags and what they are actually named by Picard, MPE, FLAC, etc.

On there it is “discsubtitle”

1 Like