Skip to content

Commit e500d4a

Browse files
committed
Ensure genre_ids always has workaround code
Fixes #307
1 parent d279b49 commit e500d4a

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

TMDbLib/Objects/Search/KnownForBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public abstract class KnownForBase
1111
public string BackdropPath { get; set; }
1212

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

1717
[JsonProperty("id")]

TMDbLib/Objects/Search/SearchMovieTvBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Collections.Generic;
22
using Newtonsoft.Json;
3+
using TMDbLib.Utilities.Converters;
34

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

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

1416
[JsonProperty("original_language")]

TMDbLib/Objects/TvShows/TvShow.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class TvShow
4646
public DateTime? FirstAirDate { get; set; }
4747

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

5152
[JsonProperty("genres")]

0 commit comments

Comments
 (0)