Skip to content

Commit

Permalink
fix #500: Add language parameter to GetTvShowVideosAsync method
Browse files Browse the repository at this point in the history
The GetTvShowVideosAsync method has been updated to include an optional language parameter. This parameter allows users of the TMDbClient library to retrieve videos in a specific language instead of only in default(en-US)
  • Loading branch information
DineshSolanki committed Jul 8, 2024
1 parent 48e2a71 commit 35b084f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TMDbLib/Client/TMDbClientTvShows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ public async Task<TranslationsContainerTv> GetTvShowTranslationsAsync(int id, Ca
return await GetTvShowMethodInternal<TranslationsContainerTv>(id, TvShowMethods.Translations, cancellationToken: cancellationToken).ConfigureAwait(false);
}

public async Task<ResultContainer<Video>> GetTvShowVideosAsync(int id, CancellationToken cancellationToken = default)
public async Task<ResultContainer<Video>> GetTvShowVideosAsync(int id, string language = null, CancellationToken cancellationToken = default)
{
return await GetTvShowMethodInternal<ResultContainer<Video>>(id, TvShowMethods.Videos, cancellationToken: cancellationToken).ConfigureAwait(false);
return await GetTvShowMethodInternal<ResultContainer<Video>>(id, TvShowMethods.Videos, language:language, cancellationToken: cancellationToken).ConfigureAwait(false);
}

public async Task<SingleResultContainer<Dictionary<string, WatchProviders>>> GetTvShowWatchProvidersAsync(int id, CancellationToken cancellationToken = default)
Expand Down

0 comments on commit 35b084f

Please sign in to comment.