Last active
October 22, 2017 03:19
-
-
Save corbanmailloux/fc34edf0d37d69180136 to your computer and use it in GitHub Desktop.
FileBot TV Naming
This file contains 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
// TV | |
{['M:', 'P:', 'T:', 'U:'].collect{ (it+'/Media/TV/'+n.sortName('$2, $1').replace(':',' -')) as File }.sort{ a, b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/ | |
{episode.special ? 'Specials' : 'Season ' + s.pad(2)}/{n.sortName('$2, $1').replace(':',' -')} - {episode.special ? 'S00E'+special.pad(2) : S00E00} - {t.replace(':',' -').replace('?', '')} | |
// New TV, with pooled drive D: | |
// Very similar to: D:/Media/TV/{plex.tail} | |
D:/Media/TV/{n.sortName('$2, $1').replace(':',' -')}/{episode.special ? 'Specials' : 'Season ' + s.pad(2)}/{n.sortName('$2, $1').replace(':',' -')} - {episode.special ? 'S00E'+special.pad(2) : S00E00} - {t.replace(':',' -').replace('?', '')} | |
// Movie | |
{sdhd == "SD" ? 'Q:/Media/Movies/000 - Non-HD' : ['Q:', 'S:', 'T:', 'U:'].collect{ (it+'/Media/Movies/') as File }.sort{ a, b -> a.diskSpace <=> b.diskSpace }.last()}/{n.sortName('$2, $1').replace(':',' -').replace('?', '')} ({y}) {'['+vf+']'} | |
// Movie (no special formatting for SD movies) | |
{['Q:', 'S:', 'T:', 'U:'].collect{ (it+'/Media/Movies/') as File }.sort{ a, b -> a.diskSpace <=> b.diskSpace }.last()}/{n.sortName('$2, $1').replace(':',' -').replace('?', '')} ({y}) {'['+vf+']'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment