mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-21 22:05:38 -04:00
Fixed: Use indexer errors from response if Content-Type is XML before processing response
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user