Scripting discsubtitle


Im using Picards scripting with this:
$set(album,$if(%discsubtitle%,%album%: %discsubtitle%,%album%))

And im using this as file name renaming:
$upper($firstalphachar($if2(%albumartistsort%, %artistsort%),#))/
$left($if2(%albumartistsort%, %artistsort%),30)/
$if2(%originalyear%,$left(%date%,4)) - %_extension% - %album% ($if(%date%,$left(%date%,4),----))$if(%label%, (%label%))/
$num(%discnumber%,2)-$num(%tracknumber%,2) - $left(%artist%,30) - $replace($replace($replace($replace($replace($replace(%title%,?,?),!,!),),/,/),:,:),…,…)

I would like th discsubtitle to come after CD01, CD02 etc., like this “CD01 - Bonus Tracks”
How do i change my script to do this?


If I understand you correctly, I think you just need to change the line:


to something like:

$if($gt(%totaldiscs%,1),$if(%discnumber%,CD$num(%discnumber%,2)$if(%discsubtitle%, - %discsubtitle%,)/),)

If I’ve misunderstood, please provide some examples of how you would like to see the file path and name to appear for an actual album.


Thank you! You just solved my problem!!

1 Like