mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 09:09:42 +02:00
Fixed: Nullref on Cardigann without login test
This commit is contained in:
@@ -969,7 +969,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Only run html test selector on html responses
|
// Only run html test selector on html responses
|
||||||
if (_definition.Login.Test.Selector != null && (response.Headers.ContentType?.Contains("text/html") ?? true))
|
if (_definition.Login.Test?.Selector != null && (response.Headers.ContentType?.Contains("text/html") ?? true))
|
||||||
{
|
{
|
||||||
var parser = new HtmlParser();
|
var parser = new HtmlParser();
|
||||||
var document = parser.ParseDocument(response.Content);
|
var document = parser.ParseDocument(response.Content);
|
||||||
|
Reference in New Issue
Block a user