From f4b890f163cd3be5b399ef03be409106ab8ff60b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 14 Jan 2014 15:03:35 -0500 Subject: added new item by name filters --- MediaBrowser.Server.Implementations/Dto/DtoService.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Dto') diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs index 2490aa2495..9cf21c534f 100644 --- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs +++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs @@ -131,11 +131,10 @@ namespace MediaBrowser.Server.Implementations.Dto { if (user == null) { - //counts = item.ItemCounts; return; } - ItemByNameCounts counts = item.GetItemByNameCounts(user.Id) ?? new ItemByNameCounts(); + var counts = item.GetItemByNameCounts(user.Id) ?? new ItemByNameCounts(); dto.ChildCount = counts.TotalCount; @@ -1244,7 +1243,7 @@ namespace MediaBrowser.Server.Implementations.Dto /// The dto. /// The item. /// Task. - private void AttachPrimaryImageAspectRatio(IItemDto dto, BaseItem item) + public void AttachPrimaryImageAspectRatio(IItemDto dto, IHasImages item) { var path = item.PrimaryImagePath; -- cgit v1.2.3