filebot/website/scripts/cpmv.groovy

10 lines
310 B
Groovy

// filebot -script "http://filebot.sf.net/scripts/cpmv.groovy" -trust-script <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', strict:false)
}