1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 16:35:08 -05:00

* script compatibility fixes

This commit is contained in:
Reinhard Pointner 2014-04-19 08:42:58 +00:00
parent ea942d41e2
commit 56ee173764

View File

@ -230,6 +230,11 @@ public abstract class ScriptShellBaseClass extends Script {
return null; return null;
} }
public Movie matchMovie(String name) throws Exception {
List<Movie> matches = MediaDetection.matchMovieName(singleton(name), true, 0);
return matches == null || matches.isEmpty() ? null : matches.get(0);
}
public int execute(Object... args) throws Exception { public int execute(Object... args) throws Exception {
List<String> cmd = new ArrayList<String>(); List<String> cmd = new ArrayList<String>();