add singular AddChildInternal

pull/702/head
Luke Pulverenti 11 years ago
parent f380d7a092
commit 03d27d4756

@ -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)
{

@ -9,6 +9,10 @@ namespace MediaBrowser.Model.Drawing
/// <summary>
/// The watched
/// </summary>
Watched
Played,
/// <summary>
/// The percent played
/// </summary>
PercentPlayed
}
}

@ -529,7 +529,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
{
new ClientWebSocket();
_supportsNativeWebSocket = false;
_supportsNativeWebSocket = true;
}
catch (PlatformNotSupportedException)
{

Loading…
Cancel
Save