mirror of
https://github.com/Jackett/Jackett
synced 2024-12-27 02:09:24 +00:00
Cardigann: handle unauthorized error code
This commit is contained in:
parent
c1fb41204c
commit
e1c5f3ed6d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue