mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Cardigann: handle unauthorized error code
This commit is contained in:
@@ -363,6 +363,9 @@ namespace Jackett.Common.Indexers
|
||||
|
||||
protected bool checkForError(WebClientStringResult loginResult, IList<errorBlock> errorBlocks)
|
||||
{
|
||||
if(loginResult.Status == HttpStatusCode.Unauthorized) // e.g. used by YGGtorrent
|
||||
throw new ExceptionWithConfigData("401 Unauthorized, check your credentials", configData);
|
||||
|
||||
if (errorBlocks == null)
|
||||
return true; // no error
|
||||
|
||||
|
Reference in New Issue
Block a user