mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 20:54:20 +01:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user