add GuestStar distinction

This commit is contained in:
Luke Pulverenti
2013-04-13 19:43:41 -04:00
parent 0ae93163bd
commit 7f1fdbf223
14 changed files with 62 additions and 24 deletions

View File

@@ -242,7 +242,6 @@ namespace MediaBrowser.Controller.Providers
}
case "Actors":
case "GuestStars":
{
foreach (var p in SplitNames(reader.ReadElementContentAsString()).Select(v => new PersonInfo { Name = v.Trim(), Type = PersonType.Actor }))
{
@@ -255,6 +254,19 @@ namespace MediaBrowser.Controller.Providers
break;
}
case "GuestStars":
{
foreach (var p in SplitNames(reader.ReadElementContentAsString()).Select(v => new PersonInfo { Name = v.Trim(), Type = PersonType.GuestStar }))
{
if (string.IsNullOrWhiteSpace(p.Name))
{
continue;
}
item.AddPerson(p);
}
break;
}
case "Trailer":
{
var val = reader.ReadElementContentAsString();