Skip to content

Commit

Permalink
Merge pull request #444 from revam/patch-3
Browse files Browse the repository at this point in the history
Add Biography to TranslationData
  • Loading branch information
cvium authored Sep 18, 2023
2 parents 0905c54 + 6f57eb7 commit f747aa3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions TMDbLib/Objects/General/TranslationData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ private string Title
[JsonProperty("overview")]
public string Overview { get; set; }

// Private hack to ensure two properties (overview, biography) are deserialized into Overview.
// Most of the entities have an overview, but people have a biography.
[JsonProperty("biography")]
private string Biography
{
set => Overview = value;
}

[JsonProperty("homepage")]
public string HomePage { get; set; }

Expand Down

0 comments on commit f747aa3

Please sign in to comment.