nebulance: trap API down message

This commit is contained in:
Garfield69 2024-06-06 08:13:26 +12:00
parent 29232b6244
commit 9410295844
1 changed files with 2 additions and 0 deletions

View File

@ -221,6 +221,8 @@ namespace Jackett.Common.Indexers
if (response.ContentString != null && response.ContentString.Contains("Invalid params")) if (response.ContentString != null && response.ContentString.Contains("Invalid params"))
throw new Exception("Invalid API Key configured"); 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 = { ',', ' ', '/', ')', '(', '.', ';', '[', ']', '"', '|', ':' }; char[] delimiters = { ',', ' ', '/', ')', '(', '.', ';', '[', ']', '"', '|', ':' };