Fetch TV Shows creators from TMDB (#17107)
Fetch TV Shows creators from TMDB
This commit is contained in:
Regular → Executable
+25
@@ -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