Skip to content

Commit

Permalink
Fixed: (Cardigann) DoLogin if search returns HttpError
Browse files Browse the repository at this point in the history
Fixes #271
  • Loading branch information
Qstick committed Jun 24, 2021
1 parent 3b42b6a commit c6b6daa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs
Expand Up @@ -133,6 +133,11 @@ private IndexerDefinition GetDefinition(CardigannMetaDefinition definition)

protected override bool CheckIfLoginNeeded(HttpResponse httpResponse)
{
if (httpResponse.HasHttpError)
{
return true;
}

var generator = (CardigannRequestGenerator)GetRequestGenerator();

SetCookieFunctions(generator);
Expand Down

0 comments on commit c6b6daa

Please sign in to comment.