* added copy-rename example script

This commit is contained in:
Reinhard Pointner 2012-02-23 08:45:41 +00:00
parent 6ac012ad5d
commit 5eca0a4e8e
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// filebot -script "http://filebot.sf.net/scripts/cpmv.groovy" <folder>
// copy files
def temp = args*.copyTo("E:/filebot-temp")
// sort copies into the given file structure
temp.eachMediaFolder {
rename(folder:it, format:'E:/TV Shows/{n}/{n} - {s00e00} - {t}', db:'thetvdb')
}
// delete temporary folders
temp*.deleteDir()