mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 09:04:42 +01:00
delete using id in RemoveChildren
This commit is contained in:
@@ -137,9 +137,11 @@ namespace MediaBrowser.Controller.Entities
|
||||
|
||||
protected void RemoveChildrenInternal(IEnumerable<BaseItem> children)
|
||||
{
|
||||
var ids = children.Select(i => i.Id).ToList();
|
||||
|
||||
lock (_childrenSyncLock)
|
||||
{
|
||||
_children = ActualChildren.Except(children).ToList();
|
||||
_children = ActualChildren.Where(i => !ids.Contains(i.Id)).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user