From 941029584491ead931d23673ba12d4178548457f Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 6 Jun 2024 08:13:26 +1200 Subject: [PATCH] nebulance: trap API down message --- src/Jackett.Common/Indexers/NebulanceAPI.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Jackett.Common/Indexers/NebulanceAPI.cs b/src/Jackett.Common/Indexers/NebulanceAPI.cs index 01f9ad114..b8b964fda 100644 --- a/src/Jackett.Common/Indexers/NebulanceAPI.cs +++ b/src/Jackett.Common/Indexers/NebulanceAPI.cs @@ -221,6 +221,8 @@ namespace Jackett.Common.Indexers if (response.ContentString != null && response.ContentString.Contains("Invalid params")) throw new Exception("Invalid API Key configured"); + if (response.ContentString != null && response.ContentString.Contains("API is down")) + throw new Exception("NBL API is down at the moment"); char[] delimiters = { ',', ' ', '/', ')', '(', '.', ';', '[', ']', '"', '|', ':' };