diff options
| author | Rant423 <87147930+Rant423@users.noreply.github.com> | 2026-07-17 22:45:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-17 22:45:54 +0200 |
| commit | 3d83e67a52a8aca41ec416f8d31bfce685d0754d (patch) | |
| tree | fc7bd36dc2126af7f98b9555f5d4ac31ece7bd44 | |
| parent | b809d964b36e05025f5986d7278d610fde36972f (diff) | |
Show production companies under TV Shows' Studios (#17246)
* show production companies instead of networks
* keep both production companies and networks
* fix whitespace
* fix nullable type
* networks first, then production companies
| -rwxr-xr-x | MediaBrowser.Providers/Plugins/Tmdb/TV/TmdbSeriesProvider.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/MediaBrowser.Providers/Plugins/Tmdb/TV/TmdbSeriesProvider.cs b/MediaBrowser.Providers/Plugins/Tmdb/TV/TmdbSeriesProvider.cs index b2f9d13e73..b44e54f888 100755 --- a/MediaBrowser.Providers/Plugins/Tmdb/TV/TmdbSeriesProvider.cs +++ b/MediaBrowser.Providers/Plugins/Tmdb/TV/TmdbSeriesProvider.cs @@ -256,11 +256,20 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV series.Overview = seriesResult.Overview; + var studios = Enumerable.Empty<string>(); + if (seriesResult.Networks is not null) { - series.Studios = seriesResult.Networks.Select(i => i.Name).ToArray(); + studios = studios.Concat(seriesResult.Networks.Select(i => i.Name).OfType<string>()); } + if (seriesResult.ProductionCompanies is not null) + { + studios = studios.Concat(seriesResult.ProductionCompanies.Select(i => i.Name).OfType<string>()); + } + + series.SetStudios(studios); + if (seriesResult.Genres is not null) { series.Genres = seriesResult.Genres.Select(i => i.Name).ToArray(); |
