Created
March 24, 2022 19:49
-
-
Save chronos-tachyon/5c9c108c39612d3c4c59dfa713b6a0d6 to your computer and use it in GitHub Desktop.
My personal Foobar2000 file naming convention for my music library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$puts(y,$if2($meta(ALBUM DATE),$year(%date%)))$puts(at,$trim($replace($replace($replace($swapprefix(%album%),' (Original Motion Picture Soundtrack)',),' (Original Motion Picture Score)',' (Score)'),' (Original Video Game Soundtrack)',)))$puts(ats,$replace($replace($trim($replace($replace($replace($stripprefix(%album%),' (Original Motion Picture Soundtrack)',),' (Original Motion Picture Score)',' (Score)'),' (Original Video Game Soundtrack)',)),' (Score)',),' [CENSORED]',))$puts(aa,$stripprefix(%album artist%))$puts(tt,$trim(%title%))$puts(taraw,$trim($stripprefix(%artist%)))$puts(ta,$if($strcmp($get(taraw),$get(aa)),,$get(taraw)))$puts(root,$if2($meta(CATEGORY),$get(aa)))$get(root)/[$get(y) - ]$if2($get(at),Unknown Album)$if($get(aa),$if($or($strcmp($get(aa),$get(root)),$strcmp($get(aa),$get(ats)),$strcmp($get(aa),Various Artists)),, '['$get(aa)']'))/$if(%tracknumber%,$if($and(%discnumber%,$not($strcmp(%totaldiscs%,1))),$num(%discnumber%,1)'.',)$num(%tracknumber%,2)-,)$if2('['$get(ta)']' ,)$get(tt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment