mirror of https://github.com/Jackett/Jackett
nebulance: trap API down message
This commit is contained in:
parent
29232b6244
commit
9410295844
|
@ -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 = { ',', ' ', '/', ')', '(', '.', ';', '[', ']', '"', '|', ':' };
|
||||
|
||||
|
|
Loading…
Reference in New Issue