mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: (Cardigann) Don't try re-auth if can't html parse json
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user