Hi,
I have some mp3 files that don’t have the Album Artist Sort Order or Artist Sort Order tags and do have Artist, but for some reason, the “$if2” doesn’t seem to work with undefined tags/values.
#1 - $upper($firstalphachar($if2(%albumartistsort%, %artistsort%, %artist%),#))/
#2 - $upper($firstalphachar($if2(%albumartistsort%, $if2(%artistsort%, %artist%)),#))/
#3 - $upper($firstalphachar($if2(%artist%, %albumartistsort%, %artistsort%),#))/
Option 1 and 2 doesn’t work, got # as the first letter option 3 gives me the “H”, which is the first letter from the artist name.
Full script:
$upper($firstalphachar($if2(%albumartistsort%, %artistsort%, %artist%),#))/
$if2(%albumartistsort%, %artistsort%, %artist%)/
$if(%date%,$left(%date%,4)) - %album%/
$if($gt(%totaldiscs%,1),Disc $num(%discnumber%,2)/)
$num(%tracknumber%,2) - %title%
Thank you!