update nfo writer

This commit is contained in:
Luke Pulverenti 2015-09-25 08:53:38 -04:00
parent 08899c47a8
commit 2e0076e03f
2 changed files with 8 additions and 6 deletions

View File

@ -283,11 +283,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
}
}
if (!process.WaitForExit(5000))
{
StopProcess(processWrapper, 100, true);
}
return mediaInfo;
}
}

View File

@ -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 });
}
}