* 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) } 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 { args.eachMediaFolder {
getSubtitles(folder:it) getSubtitles(folder:it)
rename(folder:it) rename(folder:it)