Skip to content

Instantly share code, notes, and snippets.

@BobbyWibowo
Last active July 2, 2023 06:25
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 BobbyWibowo/a0a9cb9f0faa896f0dbef1cad6fda98a to your computer and use it in GitHub Desktop.
Save BobbyWibowo/a0a9cb9f0faa896f0dbef1cad6fda98a to your computer and use it in GitHub Desktop.
Puddletag/Mp3tag functions cheatsheet

Puddletag/Mp3tag functions cheatsheet

Puddletag

Linux.

Tag to Dir

Music/%albumartist%/%album%
Music/$if(%albumartist%,%albumartist%,%artist%)/%album%

Parent dir should already default to $HOME.

Examples

$HOME/Music/Panic! at the Disco/Pray for the Wicked/

$HOME/Music/Various Artists/Hatsune Miku Magical Mirai 2014 OFFICIAL ALBUM/

Tag to filename

$if($isdigit(%discnumber%),%discnumber%-,)$num(%track%,2) %title%

Examples

If discnumber tag exists:

2-01 キャットフード Cat Food.flac

Otherwise:

10 Tears River.flac

Streamlined

$if(%albumartist%,%albumartist%,%artist%)/%album%/$if($isdigit(%discnumber%),%discnumber%-,)$num(%track%,2) %title%

Mp3tag

Windows.

Tag - Filename

$if2(%albumartist%,%artist%)\%album%\$if($isdigit(%discnumber%),%discnumber%-,)$num(%track%,2) %title%

Same as above, but due to Mp3tag's action function streamlines dir renaming, do both in a single line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment