mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
* added default imports for convenience
This commit is contained in:
parent
cb44204e81
commit
f9c9229fc8
@ -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) }
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user