mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 22:38:30 +01:00
add singular AddChildInternal
This commit is contained in:
@@ -99,7 +99,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
item.DateModified = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
AddChildrenInternal(new[] { item });
|
||||
AddChildInternal(item);
|
||||
|
||||
await LibraryManager.CreateItem(item, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
@@ -110,9 +110,13 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
foreach (var child in children)
|
||||
{
|
||||
_children.Add(child);
|
||||
AddChildInternal(child);
|
||||
}
|
||||
}
|
||||
protected void AddChildInternal(BaseItem child)
|
||||
{
|
||||
_children.Add(child);
|
||||
}
|
||||
|
||||
protected void RemoveChildrenInternal(IEnumerable<BaseItem> children)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user