$set(_illegalchars,[\\/:"*?<>|.])
$set(_replacechar,_)

$set(_albumartist,$rreplace(%albumartist%,%_illegalchars%,%_replacechar%))
$set(_album,$rreplace(%album%,%_illegalchars%,%_replacechar%))
$set(_title,$rreplace(%title%,%_illegalchars%,%_replacechar%))
$set(_discsubtitle,$rreplace(%discsubtitle%,%_illegalchars%,%_replacechar%))

%_albumartist%/
\(%date%\) %_album%
$if($ne_all(%catalognumber%,,[none]), {$getmulti(%catalognumber%,0)},$if(%barcode%, {$getmulti(%barcode%,0)}))
$if(%media%, [%media%])/
$if(%discsubtitle%,%discnumber%. %_discsubtitle%/)
%discnumber%-$num(%tracknumber%,2). $truncate(%_title%,64)
