From 6f57eb71fadab097cfd0c675968c312bbf18b3e7 Mon Sep 17 00:00:00 2001 From: Mikal S <7761729+revam@users.noreply.github.com> Date: Fri, 1 Sep 2023 14:19:12 +0200 Subject: [PATCH] Add Biography to TranslationData And apply the same "hack" that was applied to Name/Title to consolidate it with the Overview property. --- TMDbLib/Objects/General/TranslationData.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/TMDbLib/Objects/General/TranslationData.cs b/TMDbLib/Objects/General/TranslationData.cs index e3610a44..11b51069 100644 --- a/TMDbLib/Objects/General/TranslationData.cs +++ b/TMDbLib/Objects/General/TranslationData.cs @@ -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; }