salty-picard-naming-script.txt 617 B

123456789101112131415
  1. $set(_illegalchars,[\\/:"*?<>|.])
  2. $set(_replacechar,_)
  3. $set(_albumartist,$rreplace(%albumartist%,%_illegalchars%,%_replacechar%))
  4. $set(_album,$rreplace(%album%,%_illegalchars%,%_replacechar%))
  5. $set(_title,$rreplace(%title%,%_illegalchars%,%_replacechar%))
  6. $set(_discsubtitle,$rreplace(%discsubtitle%,%_illegalchars%,%_replacechar%))
  7. %_albumartist%/
  8. \(%date%\) %_album%
  9. $if($ne_all(%catalognumber%,,[none]), {$getmulti(%catalognumber%,0)},$if(%barcode%, {$getmulti(%barcode%,0)}))
  10. $if(%media%, [%media%])/
  11. $if(%discsubtitle%,%discnumber%. %_discsubtitle%/)
  12. %discnumber%-$num(%tracknumber%,2). $truncate(%_title%,64)