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:
parent
a8f80ca60e
commit
07744ab88f
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue