activate item counts

This commit is contained in:
Luke Pulverenti 2015-04-03 11:59:56 -04:00
parent 9924019f57
commit 1654236978
2 changed files with 4 additions and 5 deletions

View File

@ -142,7 +142,7 @@ namespace MediaBrowser.Api.UserLibrary
}
IEnumerable<Tuple<TItemType, List<BaseItem>>> tuples;
if (dtoOptions.Fields.Contains(ItemFields.ItemCounts) || true)
if (dtoOptions.Fields.Contains(ItemFields.ItemCounts))
{
tuples = ibnItems.Select(i => new Tuple<TItemType, List<BaseItem>>(i, i.GetTaggedItems(libraryItems).ToList()));
}
@ -177,7 +177,6 @@ namespace MediaBrowser.Api.UserLibrary
return true;
}
return true;
return options.Fields.Contains(ItemFields.ItemCounts);
}

View File

@ -97,7 +97,7 @@ namespace MediaBrowser.Server.Implementations.Dto
if (byName != null && !(item is LiveTvChannel))
{
//if (options.Fields.Contains(ItemFields.ItemCounts))
if (options.Fields.Contains(ItemFields.ItemCounts))
{
var itemFilter = byName.GetItemFilter();
@ -125,7 +125,7 @@ namespace MediaBrowser.Server.Implementations.Dto
if (byName != null && !(item is LiveTvChannel))
{
//if (options.Fields.Contains(ItemFields.ItemCounts))
if (options.Fields.Contains(ItemFields.ItemCounts))
{
var itemFilter = byName.GetItemFilter();
@ -317,7 +317,7 @@ namespace MediaBrowser.Server.Implementations.Dto
{
var dto = GetBaseItemDtoInternal(item, options, user);
//if (options.Fields.Contains(ItemFields.ItemCounts))
if (options.Fields.Contains(ItemFields.ItemCounts))
{
SetItemByNameInfo(item, dto, taggedItems, user);
}