Last active
June 20, 2024 11:17
-
-
Save BenMcLean/9eebf3b0489cbe16c25284a00e563c66 to your computer and use it in GitHub Desktop.
MusicBrainz Picard File Naming scripting https://picard-docs.musicbrainz.org/en/functions/list_by_type.html https://picard-docs.musicbrainz.org/en/variables/tags_basic.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$set(_year,$left($if2(%originaldate%,%date%),4)) | |
$replace( | |
$replace( | |
$if(_year,%_year% ) | |
%album% | |
$if($and(%releasetype%,$not($find(%releasetype%,album))), \(%releasetype%\)) | |
\($if2(%albumartist%,%artist%)\) | |
$if($eq($upper(%_extension%),MP3),, $upper(%_extension%)) | |
/ | |
$if($gt(%totaldiscs%,1),$if(%discsubtitle%,CD$num(%discnumber%,$len(%totaldiscs%)) %discsubtitle%/)$num(%discnumber%,$len(%totaldiscs%))-,) | |
$num(%tracknumber%,$if($gt($len(%totaltracks%),2),$len(%totaltracks%),2)) %title% | |
$if($find(%albumartist%,Various), \(%artist%\)) | |
,–,-) | |
,: , - ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$replace($if2(%artist%,%albumartist%) - %title%,–,-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment