The Free Software Media System - Server Backend & API
Fix metadata path save
Bond_009c7fedfbca388
diff --git a/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs b/Emby.Server.Implementations/Configuration/ServerConfigurationManager.csindex 18e279c2f0..c4fa68cac4 100644--- a/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs+++ b/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs@@ -74,23 +74,14 @@ namespace Emby.Server.Implementations.Configuration/// </summary>private void UpdateMetadataPath(){- string metadataPath;-if (string.IsNullOrWhiteSpace(Configuration.MetadataPath)){- metadataPath = GetInternalMetadataPath();+ ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath = Path.Combine(ApplicationPaths.ProgramDataPath, "metadata");}else{- metadataPath = Path.Combine(Configuration.MetadataPath, "metadata");+ ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath = Configuration.MetadataPath;}-- ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath = metadataPath;- }-- private string GetInternalMetadataPath()- {- return Path.Combine(ApplicationPaths.ProgramDataPath, "metadata");}/// <summary>