Fixed: Ensure indexer errors are handled before processing response

(cherry picked from commit 76f93c8415419f0c3dab90582d47a1c9a653263c)

Closes #2458
This commit is contained in:
Bogdan
2023-05-07 20:29:51 +03:00
parent e9ada0b43d
commit 3a274bdc4a
3 changed files with 14 additions and 2 deletions
@@ -50,6 +50,11 @@ namespace NzbDrone.Core.Indexers.Newznab
protected override bool PreProcess(IndexerResponse indexerResponse)
{
if (indexerResponse.HttpResponse.HasHttpError)
{
base.PreProcess(indexerResponse);
}
var xdoc = LoadXmlDocument(indexerResponse);
CheckError(xdoc, indexerResponse);