Check response status code in classes that extend RssParser

This commit is contained in:
Bogdan
2023-05-01 12:52:00 +03:00
parent cb189b8f61
commit 8bdc7a6db7
4 changed files with 22 additions and 2 deletions
@@ -28,6 +28,11 @@ namespace NzbDrone.Core.Indexers.Torznab
protected override bool PreProcess(IndexerResponse indexerResponse)
{
if (indexerResponse.HttpResponse.HasHttpError)
{
base.PreProcess(indexerResponse);
}
var xdoc = LoadXmlDocument(indexerResponse);
var error = xdoc.Descendants("error").FirstOrDefault();