mirror of https://github.com/jellyfin/jellyfin.git
3.2.26.19
This commit is contained in:
parent
059724ce26
commit
c147b64de8
|
@ -165,7 +165,7 @@ namespace Emby.Dlna.Profiles
|
||||||
public void AddXmlRootAttribute(string name, string value)
|
public void AddXmlRootAttribute(string name, string value)
|
||||||
{
|
{
|
||||||
var atts = XmlRootAttributes ?? new XmlAttribute[] { };
|
var atts = XmlRootAttributes ?? new XmlAttribute[] { };
|
||||||
var list = atts.ToList(atts.Length);
|
var list = atts.ToList();
|
||||||
|
|
||||||
list.Add(new XmlAttribute
|
list.Add(new XmlAttribute
|
||||||
{
|
{
|
||||||
|
|
|
@ -414,7 +414,7 @@ namespace MediaBrowser.Api.Movies
|
||||||
MaxListOrder = 3
|
MaxListOrder = 3
|
||||||
});
|
});
|
||||||
|
|
||||||
var itemIds = items.Select(i => i.Id).ToList(items.Count);
|
var itemIds = items.Select(i => i.Id).ToList();
|
||||||
|
|
||||||
return people
|
return people
|
||||||
.Where(i => itemIds.Contains(i.ItemId))
|
.Where(i => itemIds.Contains(i.ItemId))
|
||||||
|
@ -432,7 +432,7 @@ namespace MediaBrowser.Api.Movies
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var itemIds = items.Select(i => i.Id).ToList(items.Count);
|
var itemIds = items.Select(i => i.Id).ToList();
|
||||||
|
|
||||||
return people
|
return people
|
||||||
.Where(i => itemIds.Contains(i.ItemId))
|
.Where(i => itemIds.Contains(i.ItemId))
|
||||||
|
|
|
@ -231,7 +231,7 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||||
/// <returns>List<Guid>.</returns>
|
/// <returns>List<Guid>.</returns>
|
||||||
public List<Guid> GetTrailerIds()
|
public List<Guid> GetTrailerIds()
|
||||||
{
|
{
|
||||||
var list = LocalTrailerIds.ToList(LocalTrailerIds.Count);
|
var list = LocalTrailerIds.ToList();
|
||||||
list.AddRange(RemoteTrailerIds);
|
list.AddRange(RemoteTrailerIds);
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,19 +55,6 @@ namespace MediaBrowser.Model.Extensions
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<TSource> ToList<TSource>(this IEnumerable<TSource> source, int count)
|
|
||||||
{
|
|
||||||
if (source == null) throw new ArgumentNullException("source");
|
|
||||||
if (count < 0) throw new ArgumentOutOfRangeException("count");
|
|
||||||
var array = new List<TSource>(count);
|
|
||||||
int i = 0;
|
|
||||||
foreach (var item in source)
|
|
||||||
{
|
|
||||||
array[i++] = item;
|
|
||||||
}
|
|
||||||
return array;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns all distinct elements of the given source, where "distinctness"
|
/// Returns all distinct elements of the given source, where "distinctness"
|
||||||
/// is determined via a projection and the specified comparer for the projected type.
|
/// is determined via a projection and the specified comparer for the projected type.
|
||||||
|
|
|
@ -457,7 +457,7 @@ namespace MediaBrowser.Providers.Manager
|
||||||
|
|
||||||
var newImageFileInfos = newImages
|
var newImageFileInfos = newImages
|
||||||
.Select(i => i.FileInfo)
|
.Select(i => i.FileInfo)
|
||||||
.ToList(newImages.Count);
|
.ToList();
|
||||||
|
|
||||||
if (item.AddImages(type, newImageFileInfos))
|
if (item.AddImages(type, newImageFileInfos))
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace MediaBrowser.Providers.Music
|
||||||
|
|
||||||
if (replaceData || targetItem.Artists.Count == 0)
|
if (replaceData || targetItem.Artists.Count == 0)
|
||||||
{
|
{
|
||||||
targetItem.Artists = sourceItem.Artists.ToList(sourceItem.Artists.Count);
|
targetItem.Artists = sourceItem.Artists.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (replaceData || string.IsNullOrEmpty(targetItem.Album))
|
if (replaceData || string.IsNullOrEmpty(targetItem.Album))
|
||||||
|
|
|
@ -125,7 +125,7 @@ namespace MediaBrowser.Providers.Music
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
}).ToList(results.Count);
|
}).ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -621,7 +621,7 @@ namespace MediaBrowser.Providers.Music
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_mbzUrls = list.ToList(list.Count);
|
_mbzUrls = list.ToList();
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ namespace MediaBrowser.Providers.Music
|
||||||
|
|
||||||
if (replaceData || targetItem.Artists.Count == 0)
|
if (replaceData || targetItem.Artists.Count == 0)
|
||||||
{
|
{
|
||||||
targetItem.Artists = sourceItem.Artists.ToList(sourceItem.Artists.Count);
|
targetItem.Artists = sourceItem.Artists.ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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</id>
|
<id>MediaBrowser.Common</id>
|
||||||
<version>3.0.715</version>
|
<version>3.0.716</version>
|
||||||
<title>Emby.Common</title>
|
<title>Emby.Common</title>
|
||||||
<authors>Emby Team</authors>
|
<authors>Emby 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.715</version>
|
<version>3.0.716</version>
|
||||||
<title>Emby.Server.Core</title>
|
<title>Emby.Server.Core</title>
|
||||||
<authors>Emby Team</authors>
|
<authors>Emby 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 Emby Server.</description>
|
<description>Contains core components required to build plugins for Emby Server.</description>
|
||||||
<copyright>Copyright © Emby 2013</copyright>
|
<copyright>Copyright © Emby 2013</copyright>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="MediaBrowser.Common" version="3.0.715" />
|
<dependency id="MediaBrowser.Common" version="3.0.716" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</metadata>
|
||||||
<files>
|
<files>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("3.2.26.18")]
|
[assembly: AssemblyVersion("3.2.26.19")]
|
||||||
|
|
Loading…
Reference in New Issue