* don't inherit --db option for subtitle lookup and instead always force OpenSubtitles

This commit is contained in:
Reinhard Pointner 2015-02-25 01:59:04 +00:00
parent 72f4d87ade
commit b2150de37a
1 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@ import javax.script.SimpleBindings;
import net.filebot.MediaTypes; import net.filebot.MediaTypes;
import net.filebot.StandardRenameAction; import net.filebot.StandardRenameAction;
import net.filebot.WebServices;
import net.filebot.cli.ScriptShell.ScriptProvider; import net.filebot.cli.ScriptShell.ScriptProvider;
import net.filebot.web.CachedResource; import net.filebot.web.CachedResource;
@ -66,9 +67,9 @@ public class ArgumentProcessor {
} }
if (args.getSubtitles) { 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) { } 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) { if (args.rename) {