activate item counts
This commit is contained in:
parent
9924019f57
commit
1654236978
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user