Skip to content

Commit

Permalink
Merge pull request #243 from LordMike/issue-238
Browse files Browse the repository at this point in the history
Add decoding of Collections Overview
  • Loading branch information
LordMike authored Jan 15, 2018
2 parents 37ceaab + 84272f6 commit 90b01f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion TMDbLib/Client/TMDbClientCollections.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using TMDbLib.Objects.Collections;
Expand Down Expand Up @@ -38,8 +39,12 @@ public partial class TMDbClient
//req.DateFormat = "yyyy-MM-dd";

RestResponse<Collection> resp = await req.ExecuteGet<Collection>(cancellationToken).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, CancellationToken cancellationToken = default(CancellationToken))
Expand Down

0 comments on commit 90b01f5

Please # to comment.