|
|
@ -319,7 +319,9 @@ namespace MediaBrowser.Controller.Providers.TV
|
|
|
|
var actors = doc.SafeGetString("//GuestStars");
|
|
|
|
var actors = doc.SafeGetString("//GuestStars");
|
|
|
|
if (actors != null)
|
|
|
|
if (actors != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach (var person in actors.Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries).Select(str => new PersonInfo { Type = PersonType.GuestStar, Name = str }))
|
|
|
|
foreach (var person in actors.Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries)
|
|
|
|
|
|
|
|
.Where(i => !string.IsNullOrWhiteSpace(i))
|
|
|
|
|
|
|
|
.Select(str => new PersonInfo { Type = PersonType.GuestStar, Name = str }))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
episode.AddPerson(person);
|
|
|
|
episode.AddPerson(person);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -329,7 +331,9 @@ namespace MediaBrowser.Controller.Providers.TV
|
|
|
|
var directors = doc.SafeGetString("//Director");
|
|
|
|
var directors = doc.SafeGetString("//Director");
|
|
|
|
if (directors != null)
|
|
|
|
if (directors != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach (var person in directors.Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries).Select(str => new PersonInfo { Type = PersonType.Director, Name = str }))
|
|
|
|
foreach (var person in directors.Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries)
|
|
|
|
|
|
|
|
.Where(i => !string.IsNullOrWhiteSpace(i))
|
|
|
|
|
|
|
|
.Select(str => new PersonInfo { Type = PersonType.Director, Name = str }))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
episode.AddPerson(person);
|
|
|
|
episode.AddPerson(person);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -339,7 +343,9 @@ namespace MediaBrowser.Controller.Providers.TV
|
|
|
|
var writers = doc.SafeGetString("//Writer");
|
|
|
|
var writers = doc.SafeGetString("//Writer");
|
|
|
|
if (writers != null)
|
|
|
|
if (writers != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach (var person in writers.Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries).Select(str => new PersonInfo { Type = PersonType.Writer, Name = str }))
|
|
|
|
foreach (var person in writers.Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries)
|
|
|
|
|
|
|
|
.Where(i => !string.IsNullOrWhiteSpace(i))
|
|
|
|
|
|
|
|
.Select(str => new PersonInfo { Type = PersonType.Writer, Name = str }))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
episode.AddPerson(person);
|
|
|
|
episode.AddPerson(person);
|
|
|
|
}
|
|
|
|
}
|
|
|
|