added new item by name filters

This commit is contained in:
Luke Pulverenti
2014-01-14 15:03:35 -05:00
parent 3cde201190
commit f4b890f163
29 changed files with 155 additions and 95 deletions

View File

@@ -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
/// <param name="dto">The dto.</param>
/// <param name="item">The item.</param>
/// <returns>Task.</returns>
private void AttachPrimaryImageAspectRatio(IItemDto dto, BaseItem item)
public void AttachPrimaryImageAspectRatio(IItemDto dto, IHasImages item)
{
var path = item.PrimaryImagePath;