mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
nebulance: trap API down message
This commit is contained in:
@@ -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 = { ',', ' ', '/', ')', '(', '.', ';', '[', ']', '"', '|', ':' };
|
||||
|
||||
|
Reference in New Issue
Block a user