Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created September 9, 2019 17:06
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 samueldr/c480559b5d65b3f6fc331cb2f3b21160 to your computer and use it in GitHub Desktop.
Save samueldr/c480559b5d65b3f6fc331cb2f3b21160 to your computer and use it in GitHub Desktop.
$noop(//Artist or Album Artist [Various artists if it is])
$if2(%albumartist%,%artist%)/
$noop(//For releases other than original studio albums.)
/
$if($ne(%releasestatus%,official),
$noop(//_promotional, _bootleg, _pseudo-release when applicable.)
_$if2(%releasestatus%,unknown),
$noop(//_live, _compilations, _others)
$set(_mytype,$rreplace(%releasetype%,^album\(; \)?,))
$if(%_mytype%,_%_mytype%)
)
/
$noop(//Date of the original release.)
$if(%date%,\($left($if2(%originaldate%,%date%),4)\) )%album%
$if(%originaldate%,
$if($ne($left(%originaldate%,4),$left(%date%,4)), [$left(%date%,4)] )
)
/
$noop(//Disc subfolder if necessary)
$if($gt(%totaldiscs%,1),Disc %discnumber%)/
$noop(//Actual file title)
$if(%tracknumber%,$num(%tracknumber%,2).)
$if($eq(%compilation%,1), %artist% -)
%title%,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment