mirror of
https://github.com/jellyfin/TMDbLib.git
synced 2024-11-23 05:40:12 +00:00
Implement watch providers for TVShow
This commit is contained in:
parent
03bcbda610
commit
7e183f7e3d
@ -309,6 +309,11 @@ namespace TMDbLib.Client
|
||||
return await GetTvShowMethod<ResultContainer<Video>>(id, TvShowMethods.Videos, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public async Task<SingleResultContainer<WatchProvidersByRegion>> GetTvShowWatchProvidersAsync(int id, CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
return await GetTvShowMethod<SingleResultContainer<WatchProvidersByRegion>>(id, TvShowMethods.WatchProviders, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public async Task<bool> TvShowRemoveRatingAsync(int tvShowId, CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
RequireSessionId(SessionType.GuestSession);
|
||||
|
@ -140,6 +140,9 @@ namespace TMDbLib.Objects.TvShows
|
||||
[JsonProperty("videos")]
|
||||
public ResultContainer<Video> Videos { get; set; }
|
||||
|
||||
[JsonProperty("watch/providers")]
|
||||
public SingleResultContainer<WatchProvidersByRegion> WatchProviders { get; set; }
|
||||
|
||||
[JsonProperty("vote_average")]
|
||||
public double VoteAverage { get; set; }
|
||||
|
||||
|
@ -34,5 +34,7 @@ namespace TMDbLib.Objects.TvShows
|
||||
Recommendations = 1 << 11,
|
||||
[EnumValue("reviews")]
|
||||
Reviews = 1 << 12,
|
||||
[EnumValue("watch/providers")]
|
||||
WatchProviders = 1 << 13
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user