|
@@ -6,6 +6,7 @@ using System.Globalization;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using System.Threading;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks;
|
|
|
|
+using Jellyfin.Data.Enums;
|
|
using Jellyfin.Extensions;
|
|
using Jellyfin.Extensions;
|
|
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Controller.Chapters;
|
|
using MediaBrowser.Controller.Chapters;
|
|
@@ -516,12 +517,15 @@ namespace MediaBrowser.Providers.MediaInfo
|
|
|
|
|
|
foreach (var person in data.People)
|
|
foreach (var person in data.People)
|
|
{
|
|
{
|
|
- PeopleHelper.AddPerson(people, new PersonInfo
|
|
|
|
|
|
+ if (!string.IsNullOrWhiteSpace(person.Name))
|
|
{
|
|
{
|
|
- Name = person.Name.Trim(),
|
|
|
|
- Type = person.Type,
|
|
|
|
- Role = person.Role.Trim()
|
|
|
|
- });
|
|
|
|
|
|
+ PeopleHelper.AddPerson(people, new PersonInfo
|
|
|
|
+ {
|
|
|
|
+ Name = person.Name,
|
|
|
|
+ Type = person.Type,
|
|
|
|
+ Role = person.Role.Trim()
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
_libraryManager.UpdatePeople(video, people);
|
|
_libraryManager.UpdatePeople(video, people);
|