Add catalogue number to foldername

Tags: #<Tag:0x00007f58f5d317d8>

Hello,

I was thinking if I add %catalognumber% to the default script:

$if2(%albumartist%,%artist%)/
$if(%albumartist%,%originalyear% - %album%/,)
$if($gt(%totaldiscs%,1),%discnumber%-,)$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%

like this:

$if2(%albumartist%,%artist%)/
$if(%albumartist%,%originalyear% - %album%/,- %catalognumber%)
$if($gt(%totaldiscs%,1),%discnumber%-,)$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%

It would add the catalogue number to the album name like this:
Artist\Year - Album - Cataloguenumber\Number - Title.filename

But it does nothing… What am I doing wrong?
Thanks!

You have it as the “False” part of the $if statement. Try something like:

$if2(%albumartist%,%artist%)/
$if(%albumartist%,%originalyear% - %album% - %catalognumber%/,)
$if($gt(%totaldiscs%,1),%discnumber%-,)$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%
3 Likes

Thank you, that was it!

1 Like