Skip to content

Commit

Permalink
Fix for old version
Browse files Browse the repository at this point in the history
  • Loading branch information
benedettidev committed Dec 19, 2022
1 parent fb8e285 commit ef205d9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions TMDbLib/Objects/General/TranslationData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ public class TranslationData
[JsonProperty("name")]
public string Name { get; set; }

// Private hack to ensure two properties (name, title) are deserialized into Name.
// Tv Shows and Movies will use different names for their translation data.
[JsonProperty("title")]
private string Title
{
set => Name = value;
}
public string Title { get; set; }

[JsonProperty("overview")]
public string Overview { get; set; }
Expand Down

0 comments on commit ef205d9

Please sign in to comment.