mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-29 20:08:27 +01:00
update nfo writer
This commit is contained in:
@@ -258,7 +258,14 @@ namespace MediaBrowser.Providers.Movies
|
||||
{
|
||||
foreach (var person in movieData.casts.crew)
|
||||
{
|
||||
resultItem.AddPerson(new PersonInfo { Name = person.name.Trim(), Role = person.job, Type = person.department });
|
||||
// Normalize this
|
||||
var type = person.department;
|
||||
if (string.Equals(type, "writing", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
type = PersonType.Writer;
|
||||
}
|
||||
|
||||
resultItem.AddPerson(new PersonInfo { Name = person.name.Trim(), Role = person.job, Type = type });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user