mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-18 05:30:34 +01:00
Fetch TV Shows creators from TMDB (#17107)
Fetch TV Shows creators from TMDB
This commit is contained in:
25
MediaBrowser.Providers/Plugins/Tmdb/TV/TmdbSeriesProvider.cs
Normal file → Executable file
25
MediaBrowser.Providers/Plugins/Tmdb/TV/TmdbSeriesProvider.cs
Normal file → Executable file
@@ -417,6 +417,31 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
|
||||
yield return personInfo;
|
||||
}
|
||||
}
|
||||
|
||||
if (seriesResult.CreatedBy is not null)
|
||||
{
|
||||
foreach (var person in seriesResult.CreatedBy)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(person.Name))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var personInfo = new PersonInfo
|
||||
{
|
||||
Name = person.Name.Trim(),
|
||||
Type = PersonKind.Creator,
|
||||
ImageUrl = _tmdbClientManager.GetProfileUrl(person.ProfilePath)
|
||||
};
|
||||
|
||||
if (person.Id > 0)
|
||||
{
|
||||
personInfo.SetProviderId(MetadataProvider.Tmdb, person.Id.ToString(CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
||||
yield return personInfo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user