1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

* added default imports for convenience

This commit is contained in:
Reinhard Pointner 2011-10-30 05:02:54 +00:00
parent cb44204e81
commit f9c9229fc8
2 changed files with 20 additions and 1 deletions

View File

@ -1,5 +1,22 @@
// static imports for this script
import static groovy.io.FileType.*
// File, Collection, Scanner, Random, UUID, etc.
import java.io.*
import java.util.*
import groovy.io.*
import groovy.util.*
// our own functionality that might be useful
import net.sourceforge.filebot.WebServices
import net.sourceforge.filebot.MediaTypes
import net.sourceforge.tuned.FileUtilities
import net.sourceforge.filebot.mediainfo.*
import net.sourceforge.filebot.similarity.*
import net.sourceforge.filebot.web.*
import static groovy.io.FileType.*;
File.metaClass.isVideo = { _types.getFilter("video").accept(delegate) }

View File

@ -1,3 +1,5 @@
// filebot -script "http://filebot.sourceforge.net/data/shell/src.groovy" <folder>
args.eachMediaFolder {
getSubtitles(folder:it)
rename(folder:it)