Skip to content

Instantly share code, notes, and snippets.

@amercier
Last active July 22, 2018 08:04
Show Gist options
  • Save amercier/500f20b994895525099ae36ec7c997e4 to your computer and use it in GitHub Desktop.
Save amercier/500f20b994895525099ae36ec7c997e4 to your computer and use it in GitHub Desktop.

Mp3Tag Cheat Sheet

Tag -> Filename

Format:

  • default: {Album Artist or Artist} / {Year} - {Album} / {Track}. {Title}
  • when is set: {Album Artist or Artist} / {Year} - {Album} / Disc {Discnumber} / {Track}. {Title}

Cleanup:

  • removes: ?, *, ", <, >, |, :
  • replaces / by -
  • prevents multiple consecutive spaces
$validate($regexp($regexp($regexp($if2(%albumartist%,%artist%)\%year% - %album%\$if(%discnumber%,Disc $num(%discnumber%,1)\,)$num(%track%,2). $if($and(%albumartist%,$neql(%artist%,%albumartist%)),%artist% - ,)%title%,(\?|\*|"|<|>|\||:),),(/), - ), +, ),-)

Tag -> Tag

Discnumber

Normalize :

  • 1 => 1
  • 1/2 => 1
  • etc.
DISCNUMBER
$if(%discnumber%,$num(%discnumber%,1),)

Track

Normalize :

  • 1 => 1
  • 1/10 => 1
  • etc.
TRACK
$if(%track%,$num(%track%,1),)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment