From c6b6daaf80669b032a521062bba131294b56a32d Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 23 Jun 2021 22:05:28 -0400 Subject: [PATCH] Fixed: (Cardigann) DoLogin if search returns HttpError Fixes #271 --- .../Indexers/Definitions/Cardigann/Cardigann.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs index 5f66201d5..974956555 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs @@ -133,6 +133,11 @@ namespace NzbDrone.Core.Indexers.Cardigann protected override bool CheckIfLoginNeeded(HttpResponse httpResponse) { + if (httpResponse.HasHttpError) + { + return true; + } + var generator = (CardigannRequestGenerator)GetRequestGenerator(); SetCookieFunctions(generator);