From 71cc80aef98716a97de2f35416afcc5981534ab8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 11 Dec 2017 23:52:58 -0500 Subject: [PATCH] Fix: Decode Gazelle Response before parsing releases --- src/NzbDrone.Core/Indexers/Gazelle/GazelleParser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Gazelle/GazelleParser.cs b/src/NzbDrone.Core/Indexers/Gazelle/GazelleParser.cs index f60695486..d9b3a243a 100644 --- a/src/NzbDrone.Core/Indexers/Gazelle/GazelleParser.cs +++ b/src/NzbDrone.Core/Indexers/Gazelle/GazelleParser.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Net; using Newtonsoft.Json; using NzbDrone.Common.Http; @@ -40,7 +40,7 @@ namespace NzbDrone.Core.Indexers.Gazelle throw new IndexerException(indexerResponse, $"Unexpected response header {indexerResponse.HttpResponse.Headers.ContentType} from API request, expected {HttpAccept.Json.Value}"); } - var jsonResponse = JsonConvert.DeserializeObject(indexerResponse.Content); + var jsonResponse = JsonConvert.DeserializeObject(WebUtility.HtmlDecode(indexerResponse.Content)); if (jsonResponse.Status != "success" || jsonResponse.Status.IsNullOrWhiteSpace() || jsonResponse.Response == null)