Remove -get-missing-subtitles option

This commit is contained in:
Reinhard Pointner 2016-03-02 05:19:52 +00:00
parent 6f4d420c5b
commit 506de41711
2 changed files with 2 additions and 10 deletions

View File

@ -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;

View File

@ -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));
}