cardigann: fix captcha relogin (#15833)

This commit is contained in:
Edward
2025-02-03 12:49:12 +00:00
committed by GitHub
parent 702a4d201a
commit 68d3702a59

View File

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