Package net.filebot.cli
Class ScriptShellBaseClass
- java.lang.Object
-
- groovy.lang.GroovyObjectSupport
-
- groovy.lang.Script
-
- net.filebot.cli.ScriptShellBaseClass
-
- All Implemented Interfaces:
GroovyObject
public abstract class ScriptShellBaseClass extends Script
-
-
Constructor Summary
Constructors Constructor Description ScriptShellBaseClass()
-
Method Summary
-
Methods inherited from class groovy.lang.Script
evaluate, evaluate, getBinding, getProperty, invokeMethod, print, printf, printf, println, println, run, setBinding, setProperty
-
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
-
-
-
-
Constructor Detail
-
ScriptShellBaseClass
public ScriptShellBaseClass()
-
-
Method Detail
-
executeScript
public Object executeScript(String input, Map<String,?> bindings, Object... args) throws Throwable
- Throws:
Throwable
-
executeScript
public Object executeScript(String input, List<String> argv, Map<String,?> bindings, List<?> args) throws Throwable
- Throws:
Throwable
-
getLicense
public Object getLicense()
-
tryQuietly
public Object tryQuietly(Closure<?> c)
-
tryLogCatch
public Object tryLogCatch(Closure<?> c)
-
printException
public void printException(Throwable t)
-
get_args
public ArgumentBean get_args()
-
get_system
public AssociativeScriptObject get_system()
-
get_environment
public AssociativeScriptObject get_environment()
-
getRenameLog
public Map<File,File> getRenameLog() throws IOException
- Throws:
IOException
-
getPersistentRenameLog
public Map<File,File> getPersistentRenameLog() throws IOException
- Throws:
IOException
-
getRenameLog
public Map<File,File> getRenameLog(boolean complete) throws IOException
- Throws:
IOException
-
getConsole
public Object getConsole()
-
getMediaInfo
public String getMediaInfo(File file, String format) throws Exception
- Throws:
Exception
-
detectSeriesName
public String detectSeriesName(Object files) throws Exception
- Throws:
Exception
-
detectAnimeName
public String detectAnimeName(Object files) throws Exception
- Throws:
Exception
-
detectSeriesName
public String detectSeriesName(Object files, boolean anime) throws Exception
- Throws:
Exception
-
parseEpisodeNumber
public net.filebot.similarity.SeasonEpisodeMatcher.SxE parseEpisodeNumber(Object object)
-
detectMovie
public Movie detectMovie(File file, boolean strict)
-
matchMovie
public Movie matchMovie(String name)
-
telnet
public void telnet(String host, int port, Closure<?> handler) throws IOException
- Throws:
IOException
-
retry
public Object retry(int retryCountLimit, int retryWaitTime, Closure<?> c) throws InterruptedException
Retry given closure until it returns successfully (indefinitely if -1 is passed as retry count)- Throws:
InterruptedException
-
getSubtitles
public List<File> getSubtitles(Map<String,?> parameters) throws Exception
- Throws:
Exception
-
getMissingSubtitles
public List<File> getMissingSubtitles(Map<String,?> parameters) throws Exception
- Throws:
Exception
-
fetchEpisodeList
public List<String> fetchEpisodeList(Map<String,?> parameters) throws Exception
- Throws:
Exception
-
getMediaInfo
public Object getMediaInfo(Map<String,?> parameters) throws Exception
- Throws:
Exception
-
getRenameAction
public RenameAction getRenameAction(Object obj)
-
getApplyAction
public net.filebot.postprocess.Apply getApplyAction(Object obj)
-
showInputDialog
public <T> T showInputDialog(Collection<T> options, String title, String message) throws Exception
- Throws:
Exception
-
-