aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-11-10 16:22:38 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-11-10 16:22:38 -0500
commit711f58808447765b51367cb4a60581f8b8bb65ff (patch)
tree6ee8563d163fbc48d6c242a03e37d50819f56176 /Emby.Server.Implementations/Library/LibraryManager.cs
parent901d7b509c712ababc489166e05bdfea1908fa0f (diff)
3.2.36.7
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index bd8a09550..5eda986e1 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -709,6 +709,9 @@ namespace Emby.Server.Implementations.Library
var rootFolder = GetItemById(GetNewItemId(rootFolderPath, typeof(AggregateFolder))) as AggregateFolder ?? (AggregateFolder)ResolvePath(_fileSystem.GetDirectoryInfo(rootFolderPath));
+ // In case program data folder was moved
+ rootFolder.Path = rootFolderPath;
+
// Add in the plug-in folders
foreach (var child in PluginFolderCreators)
{
@@ -771,6 +774,9 @@ namespace Emby.Server.Implementations.Library
tmpItem = (UserRootFolder)ResolvePath(_fileSystem.GetDirectoryInfo(userRootPath));
}
+ // In case program data folder was moved
+ tmpItem.Path = userRootPath;
+
_userRootFolder = tmpItem;
}
}