From b2150de37ad3770f2b95b0a3460ff70d9886caee Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 25 Feb 2015 01:59:04 +0000 Subject: [PATCH] * don't inherit --db option for subtitle lookup and instead always force OpenSubtitles --- source/net/filebot/cli/ArgumentProcessor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/cli/ArgumentProcessor.java b/source/net/filebot/cli/ArgumentProcessor.java index 11edcf56..defa49e8 100644 --- a/source/net/filebot/cli/ArgumentProcessor.java +++ b/source/net/filebot/cli/ArgumentProcessor.java @@ -25,6 +25,7 @@ import javax.script.SimpleBindings; import net.filebot.MediaTypes; import net.filebot.StandardRenameAction; +import net.filebot.WebServices; import net.filebot.cli.ScriptShell.ScriptProvider; import net.filebot.web.CachedResource; @@ -66,9 +67,9 @@ public class ArgumentProcessor { } if (args.getSubtitles) { - files.addAll(cli.getSubtitles(files, args.db, args.query, args.lang, args.output, args.encoding, args.format, !args.nonStrict)); + files.addAll(cli.getSubtitles(files, WebServices.OpenSubtitles.getName(), args.query, args.lang, args.output, args.encoding, args.format, !args.nonStrict)); } else if (args.getMissingSubtitles) { - files.addAll(cli.getMissingSubtitles(files, args.db, args.query, args.lang, args.output, args.encoding, args.format, !args.nonStrict)); + files.addAll(cli.getMissingSubtitles(files, WebServices.OpenSubtitles.getName(), args.query, args.lang, args.output, args.encoding, args.format, !args.nonStrict)); } if (args.rename) {