Skip to content

Instantly share code, notes, and snippets.

@seantrane
Last active December 19, 2021 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seantrane/a4e3fa3c386d21062f8838b42ce61684 to your computer and use it in GitHub Desktop.
Save seantrane/a4e3fa3c386d21062f8838b42ce61684 to your computer and use it in GitHub Desktop.
MusicBrainz Picard Configuration
$if(%albumartist%,%albumartist%,$if(%_multiartist%,Various Artists,$if2(%albumartist%,%artist%)))/
$if($gt($lenmulti(%artists%),2),$join(%artists%, & )--,)
$if(%album%,%album%,$trim($rreplace($replace($replace($replace($replace(%title%,",'), _ , - ),:,-),/,-),\([\\?\\!_]*\),)))
$if(%releasetype%, [%releasetype%],)/
$if(%date%, \($if(%media%,%media%-,)%date%\),)/
$if(%tracknumber%,$if($gt(%totaldiscs%,1),$num(%discnumber%,2),$if(%discnumber%,$num(%discnumber%,2),))$num(%tracknumber%,2)--,%artist%--)
$trim($rreplace($replace($replace($replace($replace(%title%,",'), _ , - ),:,-),/,-),\([\\?\\!_]*\),))
$if(%tracknumber%,$if(%_multiartist%,--%artist%,$if(%albumartist%,$if($ne(%albumartist%,%artist%),--%artist%,),)),)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment