diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index 96b3d1957f..f95c7d7254 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -3038,9 +3038,7 @@ namespace Emby.Server.Implementations.Library { var libraryOptions = CollectionFolder.GetLibraryOptions(virtualFolderPath); - var list = libraryOptions.PathInfos.ToList(); - list.Add(pathInfo); - libraryOptions.SetPathInfos(list.ToArray()); + libraryOptions.PathInfos.Add(pathInfo); SyncLibraryOptionsToLocations(virtualFolderPath, libraryOptions); @@ -3068,8 +3066,6 @@ namespace Emby.Server.Implementations.Library } } - libraryOptions.SetPathInfos(list.ToArray()); - CollectionFolder.SaveLibraryOptions(virtualFolderPath, libraryOptions); }