From 56ee173764ebc5ca32c6758fe43224e1bc1f4f6c Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 19 Apr 2014 08:42:58 +0000 Subject: [PATCH] * script compatibility fixes --- source/net/filebot/cli/ScriptShellBaseClass.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/net/filebot/cli/ScriptShellBaseClass.java b/source/net/filebot/cli/ScriptShellBaseClass.java index 254dd72d..96dcb62a 100644 --- a/source/net/filebot/cli/ScriptShellBaseClass.java +++ b/source/net/filebot/cli/ScriptShellBaseClass.java @@ -230,6 +230,11 @@ public abstract class ScriptShellBaseClass extends Script { return null; } + public Movie matchMovie(String name) throws Exception { + List matches = MediaDetection.matchMovieName(singleton(name), true, 0); + return matches == null || matches.isEmpty() ? null : matches.get(0); + } + public int execute(Object... args) throws Exception { List cmd = new ArrayList();