respect locked fields

pull/702/head
Luke Pulverenti 11 years ago
parent 8e581995ef
commit 7bd586d133

@ -658,8 +658,8 @@ namespace MediaBrowser.Providers.Movies
if (!movie.LockedFields.Contains(MetadataFields.Overview))
{
movie.Overview = WebUtility.HtmlDecode(movieData.overview);
movie.Overview = movie.Overview != null ? movie.Overview.Replace("\n\n", "\n") : null;
}
movie.Overview = movie.Overview != null ? movie.Overview.Replace("\n\n", "\n") : null;
movie.HomePageUrl = movieData.homepage;
movie.Budget = movieData.budget;
movie.Revenue = movieData.revenue;

@ -214,7 +214,10 @@ namespace MediaBrowser.Providers.Movies
/// <param name="searchResult">The search result.</param>
protected void ProcessInfo(Person person, PersonResult searchResult)
{
person.Overview = searchResult.biography;
if (!person.LockedFields.Contains(MetadataFields.Overview))
{
person.Overview = searchResult.biography;
}
DateTime date;

Loading…
Cancel
Save