mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-25 09:18:51 -05:00
Remove -get-missing-subtitles option
This commit is contained in:
parent
6f4d420c5b
commit
506de41711
@ -54,9 +54,6 @@ public class ArgumentBean {
|
|||||||
@Option(name = "-get-subtitles", usage = "Fetch subtitles", metaVar = "fileset")
|
@Option(name = "-get-subtitles", usage = "Fetch subtitles", metaVar = "fileset")
|
||||||
public boolean getSubtitles;
|
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")
|
@Option(name = "--q", usage = "Force lookup query", metaVar = "series/movie title")
|
||||||
public String query;
|
public String query;
|
||||||
|
|
||||||
|
@ -53,11 +53,8 @@ public class ArgumentProcessor {
|
|||||||
// execute CLI operations
|
// execute CLI operations
|
||||||
if (args.script == null) {
|
if (args.script == null) {
|
||||||
// sanity checks
|
// sanity checks
|
||||||
if (args.getSubtitles) {
|
if (args.getSubtitles && args.recursive) {
|
||||||
throw new CmdlineException("`filebot -get-subtitles` has been disabled due to abuse. Please use `filebot -get-missing-subtitles` instead.");
|
throw new CmdlineException("`filebot -get-subtitles -r` has been disabled due to abuse. Please see http://bit.ly/suball for details.");
|
||||||
}
|
|
||||||
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.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// file operations
|
// file operations
|
||||||
@ -68,8 +65,6 @@ public class ArgumentProcessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (args.getSubtitles) {
|
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));
|
files.addAll(cli.getMissingSubtitles(files, WebServices.OpenSubtitles.getName(), args.query, args.lang, args.output, args.encoding, args.format, !args.nonStrict));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user