From 8e90d22bd2613a2f66f6523098cd5d18924b7011 Mon Sep 17 00:00:00 2001 From: Michael Bisbjerg Date: Mon, 15 Jan 2018 19:27:02 +0100 Subject: [PATCH] Add decoding of Collections Overview Fixes #238 --- TMDbLib/Client/TMDbClientCollections.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/TMDbLib/Client/TMDbClientCollections.cs b/TMDbLib/Client/TMDbClientCollections.cs index 6a4c3bac..46d83605 100644 --- a/TMDbLib/Client/TMDbClientCollections.cs +++ b/TMDbLib/Client/TMDbClientCollections.cs @@ -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 @@ public async Task GetCollectionAsync(int collectionId, string langua //req.DateFormat = "yyyy-MM-dd"; RestResponse resp = await req.ExecuteGet().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 GetCollectionImagesAsync(int collectionId, string language = null)