Skip to content

Instantly share code, notes, and snippets.

@barraIhsan
Last active February 17, 2026 03:35
Show Gist options
  • Select an option

  • Save barraIhsan/405abbee1da4ef414fa792369f4866c7 to your computer and use it in GitHub Desktop.

Select an option

Save barraIhsan/405abbee1da4ef414fa792369f4866c7 to your computer and use it in GitHub Desktop.
MusicBrainz Picard Script

It simply hosts my Picard script that I use.

For file naming script, I replace all problematic characters (/\:*?"<>|) on exFAT file system with a space and ensure that no double space occur.

single.pts is a file naming script that I mainly use. It renames the file as:
First Artist - Track Title

album.pts album.pts is also a file naming script for albums. Although I rarely use it because I prefer the first script, even for full albums, I created it just in case I (or anyone else) might need it. It renames the file as:
Track Number (2 digits). Track Title

multi.pts is a tagging script that enables multi-value fields for artist(s) and album artist(s).
e.g. supercell feat. 初音ミク will become supercell; 初音ミク (multi value)

$num(%tracknumber%,2). $rreplace(%title%,\\s?[/\\:*?"<>|]\\s?, )
$setmulti(artist,%artists%)
$setmulti(artistsort,%_artists_sort%)
$setmulti(albumartist,%_albumartists%)
$setmulti(albumartistsort,%_albumartists_sort%)
$rreplace($slice(%artists%,0,1) - %title%,\\s?[/\\:*?"<>|]\\s?, )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment