fixes #399 - MB Web Client - Tags Metadata
This commit is contained in:
parent
706f9b9f51
commit
00c13e0dc1
|
@ -775,12 +775,13 @@ namespace MediaBrowser.Providers.Movies
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!movie.LockedFields.Contains(MetadataFields.Cast))
|
||||||
|
{
|
||||||
movie.People.Clear();
|
movie.People.Clear();
|
||||||
movie.Tags.Clear();
|
|
||||||
|
|
||||||
//Actors, Directors, Writers - all in People
|
//Actors, Directors, Writers - all in People
|
||||||
//actors come from cast
|
//actors come from cast
|
||||||
if (movieData.casts != null && movieData.casts.cast != null && !movie.LockedFields.Contains(MetadataFields.Cast))
|
if (movieData.casts != null && movieData.casts.cast != null)
|
||||||
{
|
{
|
||||||
foreach (var actor in movieData.casts.cast.OrderBy(a => a.order)) movie.AddPerson(new PersonInfo { Name = actor.name, Role = actor.character, Type = PersonType.Actor });
|
foreach (var actor in movieData.casts.cast.OrderBy(a => a.order)) movie.AddPerson(new PersonInfo { Name = actor.name, Role = actor.character, Type = PersonType.Actor });
|
||||||
}
|
}
|
||||||
|
@ -790,6 +791,7 @@ namespace MediaBrowser.Providers.Movies
|
||||||
{
|
{
|
||||||
foreach (var person in movieData.casts.crew) movie.AddPerson(new PersonInfo { Name = person.name, Role = person.job, Type = person.department });
|
foreach (var person in movieData.casts.crew) movie.AddPerson(new PersonInfo { Name = person.name, Role = person.job, Type = person.department });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (movieData.keywords != null && movieData.keywords.keywords != null && !movie.LockedFields.Contains(MetadataFields.Tags))
|
if (movieData.keywords != null && movieData.keywords.keywords != null && !movie.LockedFields.Contains(MetadataFields.Tags))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user