nebulance: trap API down message

This commit is contained in:
Garfield69
2024-06-06 08:13:26 +12:00
parent 29232b6244
commit 9410295844

View File

@@ -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 = { ',', ' ', '/', ')', '(', '.', ';', '[', ']', '"', '|', ':' };