From 48b9f657a4d163e4be32c1641907fc429481aa85 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 3 Feb 2014 15:51:28 -0500 Subject: convert series providers to new system --- MediaBrowser.Server.Implementations/Library/LibraryManager.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs') diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index 789cc1100..1e04f7e09 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -208,7 +208,6 @@ namespace MediaBrowser.Server.Implementations.Library /// The prescan tasks. /// The postscan tasks. /// The people prescan tasks. - /// The savers. public void AddParts(IEnumerable rules, IEnumerable pluginFolders, IEnumerable resolvers, @@ -277,7 +276,7 @@ namespace MediaBrowser.Server.Implementations.Library /// The configuration. private void RecordConfigurationValues(ServerConfiguration configuration) { - _seasonZeroDisplayName = ConfigurationManager.Configuration.SeasonZeroDisplayName; + _seasonZeroDisplayName = configuration.SeasonZeroDisplayName; _itemsByNamePath = ConfigurationManager.ApplicationPaths.ItemsByNamePath; } @@ -309,8 +308,10 @@ namespace MediaBrowser.Server.Implementations.Library await UpdateSeasonZeroNames(newSeasonZeroName, CancellationToken.None).ConfigureAwait(false); } - // Any number of configuration settings could change the way the library is refreshed, so do that now - _taskManager.CancelIfRunningAndQueue(); + if (seasonZeroNameChanged || ibnPathChanged) + { + _taskManager.CancelIfRunningAndQueue(); + } }); } -- cgit v1.2.3