mirror of https://github.com/Jackett/Jackett
Cardigann: handle unauthorized error code
This commit is contained in:
parent
c1fb41204c
commit
e1c5f3ed6d
|
@ -363,6 +363,9 @@ namespace Jackett.Common.Indexers
|
||||||
|
|
||||||
protected bool checkForError(WebClientStringResult loginResult, IList<errorBlock> errorBlocks)
|
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)
|
if (errorBlocks == null)
|
||||||
return true; // no error
|
return true; // no error
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue