Add decoding of Collections Overview

Fixes #238
This commit is contained in:
Michael Bisbjerg 2018-01-15 19:27:02 +01:00
parent d381703bde
commit 8e90d22bd2

View File

@ -1,5 +1,6 @@
using System;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using TMDbLib.Objects.Collections;
using TMDbLib.Objects.General;
@ -37,8 +38,12 @@ namespace TMDbLib.Client
//req.DateFormat = "yyyy-MM-dd";
RestResponse<Collection> resp = await req.ExecuteGet<Collection>().ConfigureAwait(false);
Collection item = await resp.GetDataObject().ConfigureAwait(false);
return resp;
if (item != null)
item.Overview = WebUtility.HtmlDecode(item.Overview);
return item;
}
public async Task<ImagesWithId> GetCollectionImagesAsync(int collectionId, string language = null)