Fixed: (Cardigann) DoLogin if search returns HttpError

Fixes #271
This commit is contained in:
Qstick
2021-06-23 22:05:28 -04:00
parent 3b42b6a7e0
commit c6b6daaf80

View File

@@ -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);