SpeedCD: improve error handling

This commit is contained in:
kaso17 2019-01-16 12:26:43 +01:00
parent 45b47268f9
commit a499989649
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ namespace Jackett.Common.Indexers
{
CQ dom = result.Content;
var errorMessage = dom.Text();
if (errorMessage.Contains("Wrong Captcha!"))
errorMessage = "Captcha requiered due to a failed login attempt. Login via a browser to whitelist your IP and then reconfigure jackett.";
throw new ExceptionWithConfigData(errorMessage, configData);
});
}