From 07744ab88f0eaf4ea220984925bc7a06ef8a962e Mon Sep 17 00:00:00 2001 From: kaso17 Date: Wed, 18 Oct 2017 10:46:38 +0200 Subject: [PATCH] AnimeBytes: add Forbidden error handling --- src/Jackett/Indexers/AnimeBytes.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Jackett/Indexers/AnimeBytes.cs b/src/Jackett/Indexers/AnimeBytes.cs index e504b5db3..c8478bd2d 100644 --- a/src/Jackett/Indexers/AnimeBytes.cs +++ b/src/Jackett/Indexers/AnimeBytes.cs @@ -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.