aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-20 14:40:33 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-20 14:40:33 -0400
commitefed1b0cf6934bd6e70784669e2eef112d7babec (patch)
treebeb59181b41f82bbe9c98e672c12d8d91012ebde /MediaBrowser.Api/Library/LibraryService.cs
parentea68601a55887684c34813f66cfc34c68ebf9cb2 (diff)
parent7caed86e853e4181750f2058266c83f751a14b47 (diff)
Merge branch 'beta' of https://github.com/MediaBrowser/Emby into beta
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryService.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryService.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs
index 1d7b76c36..871f5e8a8 100644
--- a/MediaBrowser.Api/Library/LibraryService.cs
+++ b/MediaBrowser.Api/Library/LibraryService.cs
@@ -444,13 +444,11 @@ namespace MediaBrowser.Api.Library
public void Post(PostUpdatedSeries request)
{
- var series = _libraryManager.GetItems(new InternalItemsQuery
+ var series = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = new[] { typeof(Series).Name }
- }).Items;
-
- series = series.Where(i => string.Equals(request.TvdbId, i.GetProviderId(MetadataProviders.Tvdb), StringComparison.OrdinalIgnoreCase)).ToArray();
+ }).Where(i => string.Equals(request.TvdbId, i.GetProviderId(MetadataProviders.Tvdb), StringComparison.OrdinalIgnoreCase)).ToArray();
if (series.Length > 0)
{
@@ -467,11 +465,11 @@ namespace MediaBrowser.Api.Library
public void Post(PostUpdatedMovies request)
{
- var movies = _libraryManager.GetItems(new InternalItemsQuery
+ var movies = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = new[] { typeof(Movie).Name }
- }).Items;
+ }).ToArray();
if (!string.IsNullOrWhiteSpace(request.ImdbId))
{