mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
cardigann: fix captcha relogin (#15833)
This commit is contained in:
@@ -751,6 +751,10 @@ namespace Jackett.Common.Indexers.Definitions
|
|||||||
}
|
}
|
||||||
pairs[input] = CaptchaText.Value;
|
pairs[input] = CaptchaText.Value;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new ExceptionWithConfigData("Login failed: No captcha provided", configData);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (Captcha.Type == "text")
|
if (Captcha.Type == "text")
|
||||||
{
|
{
|
||||||
@@ -767,6 +771,10 @@ namespace Jackett.Common.Indexers.Definitions
|
|||||||
}
|
}
|
||||||
pairs[input] = CaptchaAnswer.Value;
|
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";
|
configData.LastError.Value = "Got captcha during automatic login, please reconfigure manually";
|
||||||
logger.Error(string.Format("CardigannIndexer ({0}): Found captcha during automatic login, aborting", Id));
|
logger.Error(string.Format("CardigannIndexer ({0}): Found captcha during automatic login, aborting", Id));
|
||||||
|
landingResultDocument = null;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user