Advertisement
Guest User

Picard Tagger Script

a guest
Sep 19th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. $noop(Refactored the tagger script; Added constants and tried to make it much more streamlined
  2.  
  3. Lines 1-2: Set constants for the date [in parentheses] and whether an album is Various Artists
  4. Line 3: Swap articles to the end of artist names for sane sorting
  5. Line 4: If not a VA compilation, prepend the date constant to the album title string
  6. Line 5: If there are two or more discs, prepend the disc number to the track number
  7. Line 6: Add the artist name to the filename for VA compilations)
  8.  
  9. $set(_cDate,\($if2($left(%originaldate%, 4),$left(%date%, 4))\))
  10. $set(_cVA,$eq(%albumartist%,Various Artists))
  11. $if2($swapprefix(%albumartist%),$swapprefix(%artist%))/
  12. $if($not(%_cVA%),%_cDate%) %album%/
  13. $if($gt(%totaldiscs%,1),%discnumber%-,)$num(%tracknumber%,2) -
  14. $if(%_cVA%,%artist% - ,)%title%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement