aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-09-19 19:47:41 +0200
committerGitHub <noreply@github.com>2025-09-19 11:47:41 -0600
commita1b85a63e7e34243916e27df90769d260b1c84df (patch)
tree7028634b96bc01af5b33b0630411623e68fe93be /Emby.Server.Implementations/Library/LibraryManager.cs
parent091cb1c34ab6707c24dcd35cb7ec589a4013038c (diff)
Fix root folder not being saved to Db if nessesary (#14819)
* Fix root folder not being saved to Db if nessesary * Always update folder to Db
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index 0074df80a..2e4d1b4c9 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -826,6 +826,7 @@ namespace Emby.Server.Implementations.Library
if (!folder.ParentId.Equals(rootFolder.Id))
{
+ rootFolder.UpdateToRepositoryAsync(ItemUpdateType.MetadataImport, CancellationToken.None).GetAwaiter().GetResult();
folder.ParentId = rootFolder.Id;
folder.UpdateToRepositoryAsync(ItemUpdateType.MetadataImport, CancellationToken.None).GetAwaiter().GetResult();
}