Skip to content

Commit

Permalink
Ensure genre_ids always has workaround code
Browse files Browse the repository at this point in the history
Fixes #307
  • Loading branch information
LordMike committed Apr 5, 2021
1 parent d279b49 commit e500d4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TMDbLib/Objects/Search/KnownForBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public abstract class KnownForBase
public string BackdropPath { get; set; }

[JsonProperty("genre_ids")]
[JsonConverter(typeof(TmdbIntArrayAsObjectConverter))]
[JsonConverter(typeof(TmdbIntArrayAsObjectConverter)) /*#307*/]
public List<int> GenreIds { get; set; }

[JsonProperty("id")]
Expand Down
2 changes: 2 additions & 0 deletions TMDbLib/Objects/Search/SearchMovieTvBase.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using TMDbLib.Utilities.Converters;

namespace TMDbLib.Objects.Search
{
Expand All @@ -9,6 +10,7 @@ public class SearchMovieTvBase : SearchBase
public string BackdropPath { get; set; }

[JsonProperty("genre_ids")]
[JsonConverter(typeof(TmdbIntArrayAsObjectConverter)) /*#307*/]
public List<int> GenreIds { get; set; }

[JsonProperty("original_language")]
Expand Down
1 change: 1 addition & 0 deletions TMDbLib/Objects/TvShows/TvShow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class TvShow
public DateTime? FirstAirDate { get; set; }

[JsonProperty("genre_ids")]
[JsonConverter(typeof(TmdbIntArrayAsObjectConverter)) /*#307*/]
public List<int> GenreIds { get; set; }

[JsonProperty("genres")]
Expand Down

0 comments on commit e500d4a

Please sign in to comment.