From 9eff3fa702483d5ea9f4a1570870e18051da7e69 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 23 Mar 2015 11:54:59 +0000 Subject: [PATCH] * force people to use the suball script in order to avoid abuse --- source/net/filebot/cli/ArgumentProcessor.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/cli/ArgumentProcessor.java b/source/net/filebot/cli/ArgumentProcessor.java index defa49e8..7274713a 100644 --- a/source/net/filebot/cli/ArgumentProcessor.java +++ b/source/net/filebot/cli/ArgumentProcessor.java @@ -55,8 +55,11 @@ public class ArgumentProcessor { // execute CLI operations if (args.script == null) { // sanity checks - if (args.recursive && (args.getSubtitles || args.getMissingSubtitles)) { - throw new CmdlineException("-get-subtitles -r has been disabled due to abuse."); + if (args.getSubtitles) { + throw new CmdlineException("`filebot -get-subtitles` has been disabled due to abuse. Please see http://goo.gl/G9Yf2Y for details."); + } + if (args.getMissingSubtitles && args.recursive) { + throw new CmdlineException("`filebot -get-missing-subtitles -r` has been disabled due to abuse. Please see http://goo.gl/G9Yf2Y for details."); } // file operations