1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-04 18:59:01 +00:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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