From 7bd586d1331aca13ae788b31dac20b68515b4a93 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 21 Aug 2013 16:08:26 -0400 Subject: [PATCH] respect locked fields --- MediaBrowser.Providers/Movies/MovieDbProvider.cs | 2 +- MediaBrowser.Providers/Movies/TmdbPersonProvider.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Providers/Movies/MovieDbProvider.cs b/MediaBrowser.Providers/Movies/MovieDbProvider.cs index 37b4ce386..e80ba2b7d 100644 --- a/MediaBrowser.Providers/Movies/MovieDbProvider.cs +++ b/MediaBrowser.Providers/Movies/MovieDbProvider.cs @@ -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; diff --git a/MediaBrowser.Providers/Movies/TmdbPersonProvider.cs b/MediaBrowser.Providers/Movies/TmdbPersonProvider.cs index 25f39d32f..fdc4b86c5 100644 --- a/MediaBrowser.Providers/Movies/TmdbPersonProvider.cs +++ b/MediaBrowser.Providers/Movies/TmdbPersonProvider.cs @@ -214,7 +214,10 @@ namespace MediaBrowser.Providers.Movies /// The search result. protected void ProcessInfo(Person person, PersonResult searchResult) { - person.Overview = searchResult.biography; + if (!person.LockedFields.Contains(MetadataFields.Overview)) + { + person.Overview = searchResult.biography; + } DateTime date;