1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-02 21:26:08 +00:00

AnimeBytes: add Forbidden error handling

This commit is contained in:
kaso17 2017-10-18 10:46:38 +02:00
parent a8f80ca60e
commit 07744ab88f

View file

@ -114,6 +114,9 @@ namespace Jackett.Indexers
// Follow the redirect
await FollowIfRedirect(response, LoginUrl, SearchUrl);
if (response.Status == HttpStatusCode.Forbidden)
throw new ExceptionWithConfigData("Failed to login, your IP seems to be blacklisted (shared VPN/seedbox?). Contact the staff to resolve this.", configData);
await ConfigureIfOK(response.Cookies, response.Content != null && response.Content.Contains("/user/logout"), () =>
{
// Their login page appears to be broken and just gives a 500 error.