pull/1154/head
Luke Pulverenti 7 years ago
parent 059724ce26
commit c147b64de8

@ -165,7 +165,7 @@ namespace Emby.Dlna.Profiles
public void AddXmlRootAttribute(string name, string value)
{
var atts = XmlRootAttributes ?? new XmlAttribute[] { };
var list = atts.ToList(atts.Length);
var list = atts.ToList();
list.Add(new XmlAttribute
{

@ -414,7 +414,7 @@ namespace MediaBrowser.Api.Movies
MaxListOrder = 3
});
var itemIds = items.Select(i => i.Id).ToList(items.Count);
var itemIds = items.Select(i => i.Id).ToList();
return people
.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
.Where(i => itemIds.Contains(i.ItemId))

@ -231,7 +231,7 @@ namespace MediaBrowser.Controller.Entities.TV
/// <returns>List&lt;Guid&gt;.</returns>
public List<Guid> GetTrailerIds()
{
var list = LocalTrailerIds.ToList(LocalTrailerIds.Count);
var list = LocalTrailerIds.ToList();
list.AddRange(RemoteTrailerIds);
return list;
}

@ -55,19 +55,6 @@ namespace MediaBrowser.Model.Extensions
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>
/// Returns all distinct elements of the given source, where "distinctness"
/// is determined via a projection and the specified comparer for the projected type.

@ -457,7 +457,7 @@ namespace MediaBrowser.Providers.Manager
var newImageFileInfos = newImages
.Select(i => i.FileInfo)
.ToList(newImages.Count);
.ToList();
if (item.AddImages(type, newImageFileInfos))
{

@ -23,7 +23,7 @@ namespace MediaBrowser.Providers.Music
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))

@ -125,7 +125,7 @@ namespace MediaBrowser.Providers.Music
return result;
}).ToList(results.Count);
}).ToList();
}
}
}
@ -621,7 +621,7 @@ namespace MediaBrowser.Providers.Music
}
}
_mbzUrls = list.ToList(list.Count);
_mbzUrls = list.ToList();
return list;
}

@ -30,7 +30,7 @@ namespace MediaBrowser.Providers.Music
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">
<metadata>
<id>MediaBrowser.Common</id>
<version>3.0.715</version>
<version>3.0.716</version>
<title>Emby.Common</title>
<authors>Emby Team</authors>
<owners>ebr,Luke,scottisafool</owners>

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>MediaBrowser.Server.Core</id>
<version>3.0.715</version>
<version>3.0.716</version>
<title>Emby.Server.Core</title>
<authors>Emby Team</authors>
<owners>ebr,Luke,scottisafool</owners>
@ -12,7 +12,7 @@
<description>Contains core components required to build plugins for Emby Server.</description>
<copyright>Copyright © Emby 2013</copyright>
<dependencies>
<dependency id="MediaBrowser.Common" version="3.0.715" />
<dependency id="MediaBrowser.Common" version="3.0.716" />
</dependencies>
</metadata>
<files>

@ -1,3 +1,3 @@
using System.Reflection;
[assembly: AssemblyVersion("3.2.26.18")]
[assembly: AssemblyVersion("3.2.26.19")]

Loading…
Cancel
Save