Skip to content

Commit

Permalink
Merge pull request jellyfin#400 from angyanmark/features/tvshow-recom…
Browse files Browse the repository at this point in the history
…mendations-similar-searchcontainer

TV show 'recommendations' and 'similar' as SearchContainer<SearchTv>
  • Loading branch information
LordMike committed Jan 9, 2023
2 parents fe50e09 + be55236 commit 6a9c237
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions TMDbLib/Client/TMDbClientTvShows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ public async Task<TvShow> GetTvShowAsync(int id, TvShowMethods extraMethods = Tv
if (item.AccountStates != null)
item.AccountStates.Id = id;

if (item.Recommendations != null)
item.Recommendations.Id = id;

if (item.ExternalIds != null)
item.ExternalIds.Id = id;

Expand Down
4 changes: 2 additions & 2 deletions TMDbLib/Objects/TvShows/TvShow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public class TvShow
public List<ProductionCountry> ProductionCountries { get; set; }

[JsonProperty("recommendations")]
public ResultContainer<TvShow> Recommendations { get; set; }
public SearchContainer<SearchTv> Recommendations { get; set; }

[JsonProperty("reviews")]
public SearchContainer<ReviewBase> Reviews { get; set; }
Expand All @@ -136,7 +136,7 @@ public class TvShow
public List<SearchTvSeason> Seasons { get; set; }

[JsonProperty("similar")]
public ResultContainer<TvShow> Similar { get; set; }
public SearchContainer<SearchTv> Similar { get; set; }

[JsonProperty("spoken_languages")]
public List<SpokenLanguage> SpokenLanguages { get; set; }
Expand Down

0 comments on commit 6a9c237

Please sign in to comment.