mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add Director to role mapper for TMDb
This commit is contained in:
parent
9137069f6d
commit
d5ad53e4bb
@ -313,7 +313,13 @@ namespace MediaBrowser.Providers.Tmdb.TV
|
|||||||
{
|
{
|
||||||
foreach (var actor in seriesInfo.Credits.Cast.OrderBy(a => a.Order))
|
foreach (var actor in seriesInfo.Credits.Cast.OrderBy(a => a.Order))
|
||||||
{
|
{
|
||||||
var personInfo = new PersonInfo {Name = actor.Name.Trim(), Role = actor.Character, Type = PersonType.Actor, SortOrder = actor.Order};
|
var personInfo = new PersonInfo
|
||||||
|
{
|
||||||
|
Name = actor.Name.Trim(),
|
||||||
|
Role = actor.Character,
|
||||||
|
Type = PersonType.Actor,
|
||||||
|
SortOrder = actor.Order
|
||||||
|
};
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(actor.Profile_Path))
|
if (!string.IsNullOrWhiteSpace(actor.Profile_Path))
|
||||||
{
|
{
|
||||||
|
@ -14,6 +14,12 @@ namespace MediaBrowser.Providers.Tmdb
|
|||||||
|
|
||||||
public static string MapCrewToPersonType(Crew crew)
|
public static string MapCrewToPersonType(Crew crew)
|
||||||
{
|
{
|
||||||
|
if (crew.Department.Equals("production", StringComparison.InvariantCultureIgnoreCase)
|
||||||
|
&& crew.Job.IndexOf("director", StringComparison.InvariantCultureIgnoreCase) != -1)
|
||||||
|
{
|
||||||
|
return PersonType.Director;
|
||||||
|
}
|
||||||
|
|
||||||
if (crew.Department.Equals("production", StringComparison.InvariantCultureIgnoreCase)
|
if (crew.Department.Equals("production", StringComparison.InvariantCultureIgnoreCase)
|
||||||
&& crew.Job.IndexOf("producer", StringComparison.InvariantCultureIgnoreCase) != -1)
|
&& crew.Job.IndexOf("producer", StringComparison.InvariantCultureIgnoreCase) != -1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user