Skip to content

Commit

Permalink
Add Biography to TranslationData
Browse files Browse the repository at this point in the history
And apply the same "hack" that was applied to Name/Title to consolidate it with the Overview property.
  • Loading branch information
revam authored Sep 1, 2023
1 parent 2fa2e9d commit 6f57eb7
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 6f57eb7

Please sign in to comment.