mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
3.2.36.8
This commit is contained in:
@@ -710,7 +710,11 @@ 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;
|
||||
if (!string.Equals(rootFolder.Path, rootFolderPath, StringComparison.Ordinal))
|
||||
{
|
||||
_logger.Info("Resetting root folder path to {0}", rootFolderPath);
|
||||
rootFolder.Path = rootFolderPath;
|
||||
}
|
||||
|
||||
// Add in the plug-in folders
|
||||
foreach (var child in PluginFolderCreators)
|
||||
@@ -775,7 +779,11 @@ namespace Emby.Server.Implementations.Library
|
||||
}
|
||||
|
||||
// In case program data folder was moved
|
||||
tmpItem.Path = userRootPath;
|
||||
if (!string.Equals(tmpItem.Path, userRootPath, StringComparison.Ordinal))
|
||||
{
|
||||
_logger.Info("Resetting user root folder path to {0}", userRootPath);
|
||||
tmpItem.Path = userRootPath;
|
||||
}
|
||||
|
||||
_userRootFolder = tmpItem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user