mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
update nfo writer
This commit is contained in:
parent
08899c47a8
commit
2e0076e03f
@ -283,11 +283,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
}
|
||||
}
|
||||
|
||||
if (!process.WaitForExit(5000))
|
||||
{
|
||||
StopProcess(processWrapper, 100, true);
|
||||
}
|
||||
|
||||
return mediaInfo;
|
||||
}
|
||||
}
|
||||
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user