aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Configuration
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-26 13:19:05 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-26 13:27:10 -0500
commitc81388689e03c40987b00dfd629150eb85494554 (patch)
treecbe0f68b1a4bb3747621ccb3dd164aa218c00818 /MediaBrowser.Server.Implementations/Configuration
parentfae18c57bc2177172ec6a4ffc24d4e1201e39a17 (diff)
deprecate options
Conflicts: MediaBrowser.Api/StartupWizardService.cs
Diffstat (limited to 'MediaBrowser.Server.Implementations/Configuration')
-rw-r--r--MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs27
1 files changed, 2 insertions, 25 deletions
diff --git a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
index a7d3854e7..6b668da47 100644
--- a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
+++ b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
@@ -35,7 +35,6 @@ namespace MediaBrowser.Server.Implementations.Configuration
public ServerConfigurationManager(IApplicationPaths applicationPaths, ILogManager logManager, IXmlSerializer xmlSerializer, IFileSystem fileSystem)
: base(applicationPaths, logManager, xmlSerializer, fileSystem)
{
- UpdateItemsByNamePath();
UpdateMetadataPath();
}
@@ -73,7 +72,6 @@ namespace MediaBrowser.Server.Implementations.Configuration
/// </summary>
protected override void OnConfigurationUpdated()
{
- UpdateItemsByNamePath();
UpdateMetadataPath();
base.OnConfigurationUpdated();
@@ -87,19 +85,6 @@ namespace MediaBrowser.Server.Implementations.Configuration
}
/// <summary>
- /// Updates the items by name path.
- /// </summary>
- private void UpdateItemsByNamePath()
- {
- if (!Configuration.MergeMetadataAndImagesByName)
- {
- ((ServerApplicationPaths)ApplicationPaths).ItemsByNamePath = string.IsNullOrEmpty(Configuration.ItemsByNamePath) ?
- null :
- Configuration.ItemsByNamePath;
- }
- }
-
- /// <summary>
/// Updates the metadata path.
/// </summary>
private void UpdateMetadataPath()
@@ -121,20 +106,12 @@ namespace MediaBrowser.Server.Implementations.Configuration
((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath = metadataPath;
- if (Configuration.MergeMetadataAndImagesByName)
- {
- ((ServerApplicationPaths)ApplicationPaths).ItemsByNamePath = ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath;
- }
+ ((ServerApplicationPaths)ApplicationPaths).ItemsByNamePath = ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath;
}
private string GetInternalMetadataPath()
{
- if (Configuration.EnableStandaloneMetadata)
- {
- return Path.Combine(ApplicationPaths.ProgramDataPath, "metadata");
- }
-
- return null;
+ return Path.Combine(ApplicationPaths.ProgramDataPath, "metadata");
}
/// <summary>