diff --git a/src/NzbDrone.Core/Indexers/Definitions/Headphones/HeadphonesRssParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Headphones/HeadphonesRssParser.cs index d1becd0b2..6a1081063 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Headphones/HeadphonesRssParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Headphones/HeadphonesRssParser.cs @@ -54,6 +54,11 @@ namespace NzbDrone.Core.Indexers.Headphones protected override bool PreProcess(IndexerResponse indexerResponse) { + if (indexerResponse.HttpResponse.HasHttpError) + { + base.PreProcess(indexerResponse); + } + var xdoc = LoadXmlDocument(indexerResponse); CheckError(xdoc, indexerResponse); diff --git a/src/NzbDrone.Core/Indexers/Definitions/Newznab/NewznabRssParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Newznab/NewznabRssParser.cs index 1efd2ace2..71d127085 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Newznab/NewznabRssParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Newznab/NewznabRssParser.cs @@ -58,6 +58,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); diff --git a/src/NzbDrone.Core/Indexers/Definitions/Torznab/TorznabRssParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Torznab/TorznabRssParser.cs index ebe1eff99..11e5d23fa 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Torznab/TorznabRssParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Torznab/TorznabRssParser.cs @@ -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(); diff --git a/src/NzbDrone.Core/Indexers/EzrssTorrentRssParser.cs b/src/NzbDrone.Core/Indexers/EzrssTorrentRssParser.cs index 7c995077a..0eceddd7c 100644 --- a/src/NzbDrone.Core/Indexers/EzrssTorrentRssParser.cs +++ b/src/NzbDrone.Core/Indexers/EzrssTorrentRssParser.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Xml.Linq; using NzbDrone.Common.Extensions; using NzbDrone.Core.Indexers.Exceptions; @@ -16,6 +16,11 @@ namespace NzbDrone.Core.Indexers protected override bool PreProcess(IndexerResponse indexerResponse) { + if (indexerResponse.HttpResponse.HasHttpError) + { + base.PreProcess(indexerResponse); + } + var document = LoadXmlDocument(indexerResponse); var items = GetItems(document).ToList(); @@ -24,7 +29,7 @@ namespace NzbDrone.Core.Indexers throw new IndexerException(indexerResponse, "No results were found"); } - return base.PreProcess(indexerResponse); + return true; } protected override long GetSize(XElement item)