|
|
@ -57,11 +57,17 @@ namespace MediaBrowser.Providers.Plugins.Tmdb
|
|
|
|
|
|
|
|
|
|
|
|
await EnsureClientConfigAsync().ConfigureAwait(false);
|
|
|
|
await EnsureClientConfigAsync().ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var extraMethods = MovieMethods.Credits | MovieMethods.Releases | MovieMethods.Images | MovieMethods.Videos;
|
|
|
|
|
|
|
|
if (!(Plugin.Instance?.Configuration.ExcludeTagsMovies).GetValueOrDefault())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
extraMethods |= MovieMethods.Keywords;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
movie = await _tmDbClient.GetMovieAsync(
|
|
|
|
movie = await _tmDbClient.GetMovieAsync(
|
|
|
|
tmdbId,
|
|
|
|
tmdbId,
|
|
|
|
TmdbUtils.NormalizeLanguage(language),
|
|
|
|
TmdbUtils.NormalizeLanguage(language),
|
|
|
|
imageLanguages,
|
|
|
|
imageLanguages,
|
|
|
|
MovieMethods.Credits | MovieMethods.Releases | MovieMethods.Images | MovieMethods.Keywords | MovieMethods.Videos,
|
|
|
|
extraMethods,
|
|
|
|
cancellationToken).ConfigureAwait(false);
|
|
|
|
cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
|
|
if (movie != null)
|
|
|
|
if (movie != null)
|
|
|
@ -123,11 +129,17 @@ namespace MediaBrowser.Providers.Plugins.Tmdb
|
|
|
|
|
|
|
|
|
|
|
|
await EnsureClientConfigAsync().ConfigureAwait(false);
|
|
|
|
await EnsureClientConfigAsync().ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var extraMethods = TvShowMethods.Credits | TvShowMethods.Images | TvShowMethods.ExternalIds | TvShowMethods.Videos | TvShowMethods.ContentRatings | TvShowMethods.EpisodeGroups;
|
|
|
|
|
|
|
|
if (!(Plugin.Instance?.Configuration.ExcludeTagsSeries).GetValueOrDefault())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
extraMethods |= TvShowMethods.Keywords;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
series = await _tmDbClient.GetTvShowAsync(
|
|
|
|
series = await _tmDbClient.GetTvShowAsync(
|
|
|
|
tmdbId,
|
|
|
|
tmdbId,
|
|
|
|
language: TmdbUtils.NormalizeLanguage(language),
|
|
|
|
language: TmdbUtils.NormalizeLanguage(language),
|
|
|
|
includeImageLanguage: imageLanguages,
|
|
|
|
includeImageLanguage: imageLanguages,
|
|
|
|
extraMethods: TvShowMethods.Credits | TvShowMethods.Images | TvShowMethods.Keywords | TvShowMethods.ExternalIds | TvShowMethods.Videos | TvShowMethods.ContentRatings | TvShowMethods.EpisodeGroups,
|
|
|
|
extraMethods: extraMethods,
|
|
|
|
cancellationToken: cancellationToken).ConfigureAwait(false);
|
|
|
|
cancellationToken: cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
|
|
if (series != null)
|
|
|
|
if (series != null)
|
|
|
|