diff --git a/website/scripts/cpmv.groovy b/website/scripts/cpmv.groovy new file mode 100644 index 00000000..3127cfd8 --- /dev/null +++ b/website/scripts/cpmv.groovy @@ -0,0 +1,12 @@ +// filebot -script "http://filebot.sf.net/scripts/cpmv.groovy" + +// 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()