From 506de417119095487728270fbfcb092c96453c01 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 2 Mar 2016 05:19:52 +0000 Subject: [PATCH] Remove -get-missing-subtitles option --- source/net/filebot/cli/ArgumentBean.java | 3 --- source/net/filebot/cli/ArgumentProcessor.java | 9 ++------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/source/net/filebot/cli/ArgumentBean.java b/source/net/filebot/cli/ArgumentBean.java index d96e3dd2..9ab2d0fb 100644 --- a/source/net/filebot/cli/ArgumentBean.java +++ b/source/net/filebot/cli/ArgumentBean.java @@ -54,9 +54,6 @@ public class ArgumentBean { @Option(name = "-get-subtitles", usage = "Fetch subtitles", metaVar = "fileset") public boolean getSubtitles; - @Option(name = "-get-missing-subtitles", usage = "Fetch missing subtitles", metaVar = "fileset") - public boolean getMissingSubtitles; - @Option(name = "--q", usage = "Force lookup query", metaVar = "series/movie title") public String query; diff --git a/source/net/filebot/cli/ArgumentProcessor.java b/source/net/filebot/cli/ArgumentProcessor.java index d2b467e2..2f80c807 100644 --- a/source/net/filebot/cli/ArgumentProcessor.java +++ b/source/net/filebot/cli/ArgumentProcessor.java @@ -53,11 +53,8 @@ public class ArgumentProcessor { // execute CLI operations if (args.script == null) { // sanity checks - if (args.getSubtitles) { - throw new CmdlineException("`filebot -get-subtitles` has been disabled due to abuse. Please use `filebot -get-missing-subtitles` instead."); - } - if (args.getMissingSubtitles && args.recursive) { - throw new CmdlineException("`filebot -get-missing-subtitles -r` has been disabled due to abuse. Please see http://bit.ly/suball for details."); + if (args.getSubtitles && args.recursive) { + throw new CmdlineException("`filebot -get-subtitles -r` has been disabled due to abuse. Please see http://bit.ly/suball for details."); } // file operations @@ -68,8 +65,6 @@ public class ArgumentProcessor { } if (args.getSubtitles) { - 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, WebServices.OpenSubtitles.getName(), args.query, args.lang, args.output, args.encoding, args.format, !args.nonStrict)); }