respect locked fields

This commit is contained in:
Luke Pulverenti 2013-08-21 16:08:26 -04:00
parent 8e581995ef
commit 7bd586d133
2 changed files with 5 additions and 2 deletions

View File

@ -658,8 +658,8 @@ namespace MediaBrowser.Providers.Movies
if (!movie.LockedFields.Contains(MetadataFields.Overview)) if (!movie.LockedFields.Contains(MetadataFields.Overview))
{ {
movie.Overview = WebUtility.HtmlDecode(movieData.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.HomePageUrl = movieData.homepage;
movie.Budget = movieData.budget; movie.Budget = movieData.budget;
movie.Revenue = movieData.revenue; movie.Revenue = movieData.revenue;

View File

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