Fix: Decode Gazelle Response before parsing releases

This commit is contained in:
Qstick 2017-12-11 23:52:58 -05:00
parent 0f17569908
commit 71cc80aef9
1 changed files with 2 additions and 2 deletions

View File

@ -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<GazelleResponse>(indexerResponse.Content);
var jsonResponse = JsonConvert.DeserializeObject<GazelleResponse>(WebUtility.HtmlDecode(indexerResponse.Content));
if (jsonResponse.Status != "success" ||
jsonResponse.Status.IsNullOrWhiteSpace() ||
jsonResponse.Response == null)