Fixed: Use indexer errors from response if Content-Type is XML before processing response
This commit is contained in:
parent
4fecd6ed89
commit
9bdc618366
|
@ -50,7 +50,8 @@ namespace NzbDrone.Core.Indexers.Newznab
|
|||
|
||||
protected override bool PreProcess(IndexerResponse indexerResponse)
|
||||
{
|
||||
if (indexerResponse.HttpResponse.HasHttpError)
|
||||
if (indexerResponse.HttpResponse.HasHttpError &&
|
||||
(indexerResponse.HttpResponse.Headers.ContentType == null || !indexerResponse.HttpResponse.Headers.ContentType.Contains("xml")))
|
||||
{
|
||||
base.PreProcess(indexerResponse);
|
||||
}
|
||||
|
|
|
@ -19,7 +19,8 @@ namespace NzbDrone.Core.Indexers.Torznab
|
|||
|
||||
protected override bool PreProcess(IndexerResponse indexerResponse)
|
||||
{
|
||||
if (indexerResponse.HttpResponse.HasHttpError)
|
||||
if (indexerResponse.HttpResponse.HasHttpError &&
|
||||
(indexerResponse.HttpResponse.Headers.ContentType == null || !indexerResponse.HttpResponse.Headers.ContentType.Contains("xml")))
|
||||
{
|
||||
base.PreProcess(indexerResponse);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue