mirror of
https://github.com/Jackett/Jackett
synced 2025-03-04 10:48:26 +00:00
cardigann: fix captcha relogin (#15833)
This commit is contained in:
parent
702a4d201a
commit
68d3702a59
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue