The Free Software Media System - Server Backend & API
restore localized guids config switch
Luke Pulverenti4fcdeaffee6d
diff --git a/MediaBrowser.Api/StartupWizardService.cs b/MediaBrowser.Api/StartupWizardService.csindex cdc00a9aa1..8bb840697e 100644--- a/MediaBrowser.Api/StartupWizardService.cs+++ b/MediaBrowser.Api/StartupWizardService.cs@@ -109,6 +109,7 @@ namespace MediaBrowser.Apiprivate void SetWizardFinishValues(ServerConfiguration config){+ config.EnableLocalizedGuids = true;config.EnableCustomPathSubFolders = true;config.EnableStandaloneMusicKeys = true;config.EnableCaseSensitiveItemIds = true;diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.csindex 66bea95bb3..1971b812e0 100644--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs@@ -199,6 +199,7 @@ namespace MediaBrowser.Model.Configurationpublic bool EnableAnonymousUsageReporting { get; set; }public bool EnableStandaloneMusicKeys { get; set; }+ public bool EnableLocalizedGuids { get; set; }/// <summary>/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.@@ -208,6 +209,7 @@ namespace MediaBrowser.Model.ConfigurationMigrations = new string[] { };EnableCustomPathSubFolders = true;+ EnableLocalizedGuids = true;ImageSavingConvention = ImageSavingConvention.Compatible;PublicPort = 8096;diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.csindex 961819f0df..56d3bd4de1 100644--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs@@ -502,7 +502,7 @@ namespace MediaBrowser.Server.Implementations.Librarythrow new ArgumentNullException("type");}- if (key.StartsWith(ConfigurationManager.ApplicationPaths.ProgramDataPath))+ if (ConfigurationManager.Configuration.EnableLocalizedGuids && key.StartsWith(ConfigurationManager.ApplicationPaths.ProgramDataPath)){// Try to normalize paths located underneath program-data in an attempt to make them more portablekey = key.Substring(ConfigurationManager.ApplicationPaths.ProgramDataPath.Length)