diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-06-01 17:06:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-01 17:06:01 +0200 |
| commit | ce1fa42f9d39add8467bfed186730c4a9545344d (patch) | |
| tree | 8c2aafa3a3552174d15208551da1c34449a13b18 /Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs | |
| parent | 2696ac5eacfb4702d629bc06a8b42b868c316116 (diff) | |
| parent | b1f764984f7098ee1164efee77f1bcb3de9fd08a (diff) | |
Merge branch 'master' into tasks
Diffstat (limited to 'Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs b/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs index 18e279c2f..c4fa68cac 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> |
