diff --git a/src/Jackett.Common/Indexers/Definitions/NebulanceAPI.cs b/src/Jackett.Common/Indexers/Definitions/NebulanceAPI.cs index d94a2ec72..00ca9abd7 100644 --- a/src/Jackett.Common/Indexers/Definitions/NebulanceAPI.cs +++ b/src/Jackett.Common/Indexers/Definitions/NebulanceAPI.cs @@ -64,6 +64,7 @@ namespace Jackett.Common.Indexers.Definitions configData: new ConfigurationDataAPIKey()) { configData.AddDynamic("keyInfo", new DisplayInfoConfigurationItem(string.Empty, "Generate a new key by accessing your account profile settings at Nebulance, scroll down to the API Keys section, tick the New Key, list and download checkboxes and save.")); + configData.AddDynamic("loginRequirements", new DisplayInfoConfigurationItem(string.Empty, "You must meet the login requirements: VPN with 2FA or ISP in home country.")); } private TorznabCapabilities SetCapabilities() @@ -317,6 +318,11 @@ namespace Jackett.Common.Indexers.Definitions public IList ParseResponse(IndexerResponse indexerResponse) { + if (indexerResponse.WebResponse.Status == HttpStatusCode.Forbidden) + { + throw new Exception("You do not meet the login requirements: VPN with 2FA or ISP in home country."); + } + if (indexerResponse.WebResponse.Status != HttpStatusCode.OK) { throw new Exception($"Unexpected response status '{indexerResponse.WebResponse.Status}' code from indexer request");