aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Configuration/BaseConfigurationManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-23 22:15:29 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-23 22:15:29 -0400
commitdb66b73a4f500230dd0ed4f5b93d02c6c6916973 (patch)
tree692183d5173bdbbfdaf6c3b9e6b1934271dca937 /MediaBrowser.Common.Implementations/Configuration/BaseConfigurationManager.cs
parent6f016525208f665502d844d151c31e9ff38fd20a (diff)
updated ImageMagickSharp
Diffstat (limited to 'MediaBrowser.Common.Implementations/Configuration/BaseConfigurationManager.cs')
-rw-r--r--MediaBrowser.Common.Implementations/Configuration/BaseConfigurationManager.cs19
1 files changed, 16 insertions, 3 deletions
diff --git a/MediaBrowser.Common.Implementations/Configuration/BaseConfigurationManager.cs b/MediaBrowser.Common.Implementations/Configuration/BaseConfigurationManager.cs
index c53947e44..1b9146644 100644
--- a/MediaBrowser.Common.Implementations/Configuration/BaseConfigurationManager.cs
+++ b/MediaBrowser.Common.Implementations/Configuration/BaseConfigurationManager.cs
@@ -164,9 +164,22 @@ namespace MediaBrowser.Common.Implementations.Configuration
/// </summary>
private void UpdateCachePath()
{
- ((BaseApplicationPaths)CommonApplicationPaths).CachePath = string.IsNullOrEmpty(CommonConfiguration.CachePath) ?
- null :
- CommonConfiguration.CachePath;
+ string cachePath;
+
+ if (string.IsNullOrWhiteSpace(CommonConfiguration.CachePath))
+ {
+ cachePath = null;
+ }
+ else if (CommonConfiguration.EnableCustomPathSubFolders)
+ {
+ cachePath = Path.Combine(CommonConfiguration.CachePath, "cache");
+ }
+ else
+ {
+ cachePath = CommonConfiguration.CachePath;
+ }
+
+ ((BaseApplicationPaths)CommonApplicationPaths).CachePath = cachePath;
}
/// <summary>