* script compatibility fixes

This commit is contained in:
Reinhard Pointner 2014-04-19 08:42:58 +00:00
parent ea942d41e2
commit 56ee173764
1 changed files with 5 additions and 0 deletions

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>();