aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/ItemsService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-25 16:15:50 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-25 16:15:50 -0400
commit547291f04865f23090986667b5a802cd89ea003d (patch)
treeff2e4c105979fea94390af6c3614193a0d2a9dc5 /MediaBrowser.Api/UserLibrary/ItemsService.cs
parenteda8159b4408c4b33cbdd56e3e6ed2f82757bb0c (diff)
rework notifications infrastructure
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ItemsService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/ItemsService.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs
index 74ce4a0a7..f1b8b2d52 100644
--- a/MediaBrowser.Api/UserLibrary/ItemsService.cs
+++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs
@@ -373,11 +373,9 @@ namespace MediaBrowser.Api.UserLibrary
/// <exception cref="System.InvalidOperationException"></exception>
private IEnumerable<BaseItem> GetItemsToSerialize(GetItems request, User user)
{
- var userId = user == null ? (Guid?)null : user.Id;
-
var item = string.IsNullOrEmpty(request.ParentId) ?
user == null ? _libraryManager.RootFolder : user.RootFolder :
- _dtoService.GetItemByDtoId(request.ParentId, userId);
+ _libraryManager.GetItemById(request.ParentId);
// Default list type = children
IEnumerable<BaseItem> items;
@@ -386,7 +384,7 @@ namespace MediaBrowser.Api.UserLibrary
{
var idList = request.Ids.Split(',').ToList();
- items = idList.Select(i => _dtoService.GetItemByDtoId(i, userId));
+ items = idList.Select(i => _libraryManager.GetItemById(i));
}
else if (request.Recursive)