mirror of https://github.com/jellyfin/jellyfin.git
add singular AddChildInternal
This commit is contained in:
parent
f380d7a092
commit
03d27d4756
|
@ -99,7 +99,7 @@ namespace MediaBrowser.Controller.Entities
|
||||||
item.DateModified = DateTime.UtcNow;
|
item.DateModified = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
|
|
||||||
AddChildrenInternal(new[] { item });
|
AddChildInternal(item);
|
||||||
|
|
||||||
await LibraryManager.CreateItem(item, cancellationToken).ConfigureAwait(false);
|
await LibraryManager.CreateItem(item, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
|
@ -110,9 +110,13 @@ namespace MediaBrowser.Controller.Entities
|
||||||
{
|
{
|
||||||
foreach (var child in children)
|
foreach (var child in children)
|
||||||
{
|
{
|
||||||
_children.Add(child);
|
AddChildInternal(child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
protected void AddChildInternal(BaseItem child)
|
||||||
|
{
|
||||||
|
_children.Add(child);
|
||||||
|
}
|
||||||
|
|
||||||
protected void RemoveChildrenInternal(IEnumerable<BaseItem> children)
|
protected void RemoveChildrenInternal(IEnumerable<BaseItem> children)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,6 +9,10 @@ namespace MediaBrowser.Model.Drawing
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The watched
|
/// The watched
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Watched
|
Played,
|
||||||
|
/// <summary>
|
||||||
|
/// The percent played
|
||||||
|
/// </summary>
|
||||||
|
PercentPlayed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -529,7 +529,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||||
{
|
{
|
||||||
new ClientWebSocket();
|
new ClientWebSocket();
|
||||||
|
|
||||||
_supportsNativeWebSocket = false;
|
_supportsNativeWebSocket = true;
|
||||||
}
|
}
|
||||||
catch (PlatformNotSupportedException)
|
catch (PlatformNotSupportedException)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue