aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-08-12 22:07:09 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-08-12 22:07:09 -0400
commite3fd8525d62c76069b1e9227b4b3111ffc817883 (patch)
tree2834a24b69c4a8fb2a7fe9e4bb1218b0cf662dde
parentbdcb003c1d33bee6cbde9f0f3ac968949167b915 (diff)
reduce operations after config changes
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs16
1 files changed, 0 insertions, 16 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index 0e0597ed6..7f3bb674e 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -288,17 +288,6 @@ namespace MediaBrowser.Server.Implementations.Library
{
var config = ConfigurationManager.Configuration;
- // Figure out whether or not we should refresh people after the update is finished
- var refreshPeopleAfterUpdate = !_internetProvidersEnabled && config.EnableInternetProviders;
-
- // This is true if internet providers has just been turned on, or if People have just been removed from InternetProviderExcludeTypes
- if (!refreshPeopleAfterUpdate)
- {
- var newConfigurationFetchesPeopleImages = config.InternetProviderExcludeTypes == null || !config.InternetProviderExcludeTypes.Contains(typeof(Person).Name, StringComparer.OrdinalIgnoreCase);
-
- refreshPeopleAfterUpdate = newConfigurationFetchesPeopleImages && !_peopleImageFetchingEnabled;
- }
-
var ibnPathChanged = !string.Equals(_itemsByNamePath, ConfigurationManager.ApplicationPaths.ItemsByNamePath, StringComparison.CurrentCulture);
if (ibnPathChanged)
@@ -320,11 +309,6 @@ namespace MediaBrowser.Server.Implementations.Library
// Any number of configuration settings could change the way the library is refreshed, so do that now
_taskManager.CancelIfRunningAndQueue<RefreshMediaLibraryTask>();
-
- if (refreshPeopleAfterUpdate)
- {
- _taskManager.CancelIfRunningAndQueue<PeopleValidationTask>();
- }
});
}