remove SetPathInfos in UpdateMediaPath

pull/11473/head
del 2 weeks ago
parent 8c4419aba5
commit e8d8452b9d

@ -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);
}

Loading…
Cancel
Save