Fixed: (Cardigann) Don't try re-auth if can't html parse json

pull/424/merge
Qstick 3 years ago
parent a31971472d
commit 470b751f44

@ -924,6 +924,9 @@ namespace NzbDrone.Core.Indexers.Cardigann
return true; return true;
} }
// Only run html test selector on html responses
if (response.Headers.ContentType.Contains("text/html"))
{
var parser = new HtmlParser(); var parser = new HtmlParser();
var document = parser.ParseDocument(response.Content); var document = parser.ParseDocument(response.Content);
@ -935,6 +938,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
return true; return true;
} }
} }
}
return false; return false;
} }

Loading…
Cancel
Save