add singular AddChildInternal

This commit is contained in:
Luke Pulverenti 2013-09-21 11:06:21 -04:00
parent f380d7a092
commit 03d27d4756
3 changed files with 12 additions and 4 deletions

View File

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

View File

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

View File

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