From 68d3702a59cfe3491d66339885cfe2cc19daebf6 Mon Sep 17 00:00:00 2001 From: Edward <73746306+WangEdward@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:49:12 +0000 Subject: [PATCH] cardigann: fix captcha relogin (#15833) --- .../Indexers/Definitions/CardigannIndexer.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Jackett.Common/Indexers/Definitions/CardigannIndexer.cs b/src/Jackett.Common/Indexers/Definitions/CardigannIndexer.cs index 9b87a9ffa..6c985fe1e 100644 --- a/src/Jackett.Common/Indexers/Definitions/CardigannIndexer.cs +++ b/src/Jackett.Common/Indexers/Definitions/CardigannIndexer.cs @@ -751,6 +751,10 @@ namespace Jackett.Common.Indexers.Definitions } pairs[input] = CaptchaText.Value; } + else + { + throw new ExceptionWithConfigData("Login failed: No captcha provided", configData); + } } if (Captcha.Type == "text") { @@ -767,6 +771,10 @@ namespace Jackett.Common.Indexers.Definitions } pairs[input] = CaptchaAnswer.Value; } + else + { + throw new ExceptionWithConfigData("Login failed: No captcha provided", configData); + } } } @@ -1065,6 +1073,7 @@ namespace Jackett.Common.Indexers.Definitions { configData.LastError.Value = "Got captcha during automatic login, please reconfigure manually"; logger.Error(string.Format("CardigannIndexer ({0}): Found captcha during automatic login, aborting", Id)); + landingResultDocument = null; return null; }