1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

* update sorty example script

This commit is contained in:
Reinhard Pointner 2013-10-06 05:31:57 +00:00
parent 2724fba24f
commit 026d4540af

View File

@ -1,8 +1,8 @@
// PERSONALIZED SETTINGS
def episodeDir = '''V:/in/TV'''
def episodeFormat = '''V:/out/TV/{n}{'/Season '+s}/{episode}'''
def movieDir = '''V:/in/Movies'''
def movieFormat = '''V:/out/Movies/{movie}/{movie}'''
def episodeDir = '''/in/TV'''
def episodeFormat = '''/out/TV/{n}/{"Season ${s.pad(2)}"}/{n} - {s00e00} - {t}'''
def movieDir = '''/in/Movies'''
def movieFormat = '''/out/Movies/{n} ({y})/{n} ({y}){" CD$pi"}'''
// XBMC ON LOCAL MACHINE
def xbmc = ['localhost'] // (use [] to not notify any XBMC instances about updates)
@ -10,7 +10,7 @@ def xbmc = ['localhost'] // (use [] to not notify any XBMC instances about updat
// ignore chunk, part, par and hidden files
def incomplete(f) { f.name =~ /[.]incomplete|[.]chunk|[.]par$|[.]dat$/ || f.isHidden() }
def incomplete(f) { f.name =~ /[.]incomplete|[.]chunk|[.]par$|[.]dat$/ }
// extract completed multi-volume rar files
@ -36,7 +36,7 @@ episodeDir.getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it.isVideo()
files += getSubtitles(file:files)
// sort episodes / subtitles
rename(file:files, db:'TVRage', format:episodeFormat)
rename(file:files, db:'TheTVDB', format:episodeFormat)
}
movieDir.getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it.isVideo() } }.each{ dir ->
@ -47,7 +47,7 @@ movieDir.getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it.isVideo() }
files += getSubtitles(file:files)
// sort movies / subtitles
rename(file:files, db:'OpenSubtitles', format:movieFormat)
rename(file:files, db:'TheMovieDB', format:movieFormat)
}