I tried this:
$if($or($in(%_secondarytypes%,soundtrack),
$in(%_secondarytypes%,ost),
$in(%_secondarytypes%,original motion picture),
$in(%_secondarytypes%,original motion picture soundtrack)),
$set(_basepath,$rreplace(%_album% - %_albumartistname% %_disccount% \(%_year%\) %_format% %_audio% %_catno% %_label%, {2\,}, )),
$set(_basepath,$rreplace(%_albumartistname% - %_album% %_disccount% \(%_year%\) %_format% %_audio% %_catno% %_label%, {2\,}, ))
)
but it doesnt work again…
This is my full script:
$set(_album,%album%)
$set(_album,$trim(%_album%))
$set(_album,$rreplace(%_album%, {2\,}, ))
$set(_albumartistname,$swapprefix(%albumartist%))
$set(_albumartistname,$trim(%_albumartistname%))
$set(_albumartistname,$rreplace(%_albumartistname%, {2\,}, ))
$set(_artistname,$swapprefix(%artist%))
$set(_artistname,$trim(%_artistname%))
$set(_artistname,$rreplace(%_artistname%, {2\,}, ))
$set(_year,$left($if2(%date%,%originaldate%,0000),4))
$set(_format,$upper(%_extension%))
$set(_audio,$if2(%_bits_per_sample%,0)-$div($if2(%_sample_rate%,0),1000))
$set(_catno,$if2(%catalognumber%,No Cat Number))
$set(_catno,$replace(%_catno%, ,_))
$set(_catno,$replace(%_catno%,-,_))
$set(_label,$if2(%label%,No Label))
$set(coverart,%coverart_url%)
$set(_disccount,$if($gt(%totaldiscs%,1),%totaldiscs%Discs))
$set(_secondarytypes,$lower($replace($if2(%_secondaryreleasetype%,),;, )))
$if($or($in(%_secondarytypes%,soundtrack),
$in(%_secondarytypes%,ost),
$in(%_secondarytypes%,original motion picture),
$in(%_secondarytypes%,original motion picture soundtrack)),
$set(_basepath,$rreplace(%_album% - %_albumartistname% %_disccount% \(%_year%\) %_format% %_audio% %_catno% %_label%, {2\,}, )),
$set(_basepath,$rreplace(%_albumartistname% - %_album% %_disccount% \(%_year%\) %_format% %_audio% %_catno% %_label%, {2\,}, ))
)
$if($gt(%totaldiscs%,1),
$set(_basepath,
$if(%discsubtitle%,%_basepath%/$num(%discnumber%,2) %discsubtitle%,%_basepath%/Disc $num(%discnumber%,2))))
$if($gt(%totaldiscs%,1),
%_basepath%/$num(%discnumber%,2)-$num(%tracknumber%,2) %title%,$if($and(%albumartist%,$ne(%albumartist%,%artist%)),%_basepath%/$num(%tracknumber%,2) %title% - %artist%,%_basepath%/$num(%tracknumber%,2) %title%))