mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
updated nuget
This commit is contained in:
parent
024df8a011
commit
734e53e937
@ -92,13 +92,27 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
/// <exception cref="System.InvalidOperationException">Unable to add + item.Name</exception>
|
/// <exception cref="System.InvalidOperationException">Unable to add + item.Name</exception>
|
||||||
public async Task AddChild(BaseItem item, CancellationToken cancellationToken)
|
public async Task AddChild(BaseItem item, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
|
item.Parent = this;
|
||||||
|
|
||||||
|
if (item.Id == Guid.Empty)
|
||||||
|
{
|
||||||
|
item.Id = item.Path.GetMBId(item.GetType());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.DateCreated == DateTime.MinValue)
|
||||||
|
{
|
||||||
|
item.DateCreated = DateTime.Now;
|
||||||
|
}
|
||||||
|
if (item.DateModified == DateTime.MinValue)
|
||||||
|
{
|
||||||
|
item.DateModified = DateTime.Now;
|
||||||
|
}
|
||||||
|
|
||||||
if (!_children.TryAdd(item.Id, item))
|
if (!_children.TryAdd(item.Id, item))
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("Unable to add " + item.Name);
|
throw new InvalidOperationException("Unable to add " + item.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
item.Parent = this;
|
|
||||||
|
|
||||||
var newChildren = Children.ToList();
|
var newChildren = Children.ToList();
|
||||||
|
|
||||||
await LibraryManager.CreateItem(item, cancellationToken).ConfigureAwait(false);
|
await LibraryManager.CreateItem(item, cancellationToken).ConfigureAwait(false);
|
||||||
|
@ -71,7 +71,7 @@ namespace MediaBrowser.Controller.Providers.Music
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return "1";
|
return "4";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Common.Internal</id>
|
<id>MediaBrowser.Common.Internal</id>
|
||||||
<version>3.0.100</version>
|
<version>3.0.101</version>
|
||||||
<title>MediaBrowser.Common.Internal</title>
|
<title>MediaBrowser.Common.Internal</title>
|
||||||
<authors>Luke</authors>
|
<authors>Luke</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
@ -12,9 +12,9 @@
|
|||||||
<description>Contains common components shared by Media Browser Theatre and Media Browser Server. Not intended for plugin developer consumption.</description>
|
<description>Contains common components shared by Media Browser Theatre and Media Browser Server. Not intended for plugin developer consumption.</description>
|
||||||
<copyright>Copyright © Media Browser 2013</copyright>
|
<copyright>Copyright © Media Browser 2013</copyright>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="MediaBrowser.Common" version="3.0.100" />
|
<dependency id="MediaBrowser.Common" version="3.0.101" />
|
||||||
<dependency id="NLog" version="2.0.1.2" />
|
<dependency id="NLog" version="2.0.1.2" />
|
||||||
<dependency id="ServiceStack.Text" version="3.9.100" />
|
<dependency id="ServiceStack.Text" version="3.9.101" />
|
||||||
<dependency id="SimpleInjector" version="2.2.1" />
|
<dependency id="SimpleInjector" version="2.2.1" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Common</id>
|
<id>MediaBrowser.Common</id>
|
||||||
<version>3.0.100</version>
|
<version>3.0.101</version>
|
||||||
<title>MediaBrowser.Common</title>
|
<title>MediaBrowser.Common</title>
|
||||||
<authors>Media Browser Team</authors>
|
<authors>Media Browser Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Server.Core</id>
|
<id>MediaBrowser.Server.Core</id>
|
||||||
<version>3.0.100</version>
|
<version>3.0.101</version>
|
||||||
<title>Media Browser.Server.Core</title>
|
<title>Media Browser.Server.Core</title>
|
||||||
<authors>Media Browser Team</authors>
|
<authors>Media Browser Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<description>Contains core components required to build plugins for Media Browser Server.</description>
|
<description>Contains core components required to build plugins for Media Browser Server.</description>
|
||||||
<copyright>Copyright © Media Browser 2013</copyright>
|
<copyright>Copyright © Media Browser 2013</copyright>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="MediaBrowser.Common" version="3.0.100" />
|
<dependency id="MediaBrowser.Common" version="3.0.101" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</metadata>
|
||||||
<files>
|
<files>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user