Script doesn't work anymore as supposed with releases after 2.7.3

To get rid of the “album” in the ID-tags on compilations I use this script line:

$if($inmulti(%releasetype%,compilation),$setmulti(releasetype,$rreplace(%releasetype%,album|ep|single,)))

This worked flawless with the older versions of Picard but starting with version 2.8.0 there is a semicolon added in front of the remaining “Compilation”.

Not being a great programmer/script-writer I can’t solve this so I still use version 2.7.3 of Picard.

Anyone there to help me with this? I don’t know if this is a bug or change in the scripting language.

Thanks,

Fred

There was that change for PICARD-2392 to allow empty values in multi-value variables. But together with the change the new function $cleanmulti got added to remove empty values from multi-value variables again.

So if you adapt your script like this it should work again as before:

$if($inmulti(%releasetype%,compilation),$setmulti(releasetype,$rreplace(%releasetype%,album|ep|single,)))
$cleanmulti(releasetype)
2 Likes

Thanks, works like it was used to.

Fred

1 Like