Skip to content

The Free Software Media System - Server Backend & API

Fix collections folder duplication (#14925)

theguymadmax79ff0b0b002c
diff --git a/Emby.Server.Implementations/Collections/CollectionManager.cs b/Emby.Server.Implementations/Collections/CollectionManager.cs
index 0eb387ffdd..a320a774c6 100644
--- a/Emby.Server.Implementations/Collections/CollectionManager.cs
+++ b/Emby.Server.Implementations/Collections/CollectionManager.cs
@@ -104,6 +104,8 @@ namespace Emby.Server.Implementations.Collections
await _libraryManager.AddVirtualFolder(name, CollectionTypeOptions.boxsets, libraryOptions, true).ConfigureAwait(false);
+ _libraryManager.RootFolder.Children = null;
+
return FindFolders(path).First();
}