mirror of
https://github.com/Readarr/Readarr
synced 2025-12-24 01:03:32 +01:00
Fixed: Use indexer errors from response if Content-Type is XML before processing response
(cherry picked from commit 9bdc6183663a3510e53433a30ad701065e7ee9d9)
This commit is contained in:
parent
ccd8d93e82
commit
e6da9d26fd
2 changed files with 4 additions and 2 deletions
|
|
@ -50,7 +50,8 @@ public static void CheckError(XDocument xdoc, IndexerResponse indexerResponse)
|
|||
|
||||
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 @@ public TorznabRssParser()
|
|||
|
||||
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 a new issue