aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-03 15:51:28 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-03 15:51:28 -0500
commit48b9f657a4d163e4be32c1641907fc429481aa85 (patch)
tree6b54b4f6686d35f8337d25eec154419a20e22950 /MediaBrowser.Server.Implementations/Library/LibraryManager.cs
parentb7a811992ba8a660ade212e2ed37306e9d9721d9 (diff)
convert series providers to new system
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs9
1 files changed, 5 insertions, 4 deletions
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
/// <param name="prescanTasks">The prescan tasks.</param>
/// <param name="postscanTasks">The postscan tasks.</param>
/// <param name="peoplePrescanTasks">The people prescan tasks.</param>
- /// <param name="savers">The savers.</param>
public void AddParts(IEnumerable<IResolverIgnoreRule> rules,
IEnumerable<IVirtualFolderCreator> pluginFolders,
IEnumerable<IItemResolver> resolvers,
@@ -277,7 +276,7 @@ namespace MediaBrowser.Server.Implementations.Library
/// <param name="configuration">The configuration.</param>
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<RefreshMediaLibraryTask>();
+ if (seasonZeroNameChanged || ibnPathChanged)
+ {
+ _taskManager.CancelIfRunningAndQueue<RefreshMediaLibraryTask>();
+ }
});
}