Skip to content

Instantly share code, notes, and snippets.

@seantrane
Last active December 28, 2024 12:20
Show Gist options
  • 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%,),)),)
$if(%releasedate%,$if($ne(%date%,%releasedate%), [%releasedate%],),)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment