|
|
@ -115,11 +115,10 @@ namespace MediaBrowser.Server.Implementations.Dto
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (options.Fields.Contains(ItemFields.ItemCounts))
|
|
|
|
if (options.Fields.Contains(ItemFields.ItemCounts))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var itemFilter = byName.GetItemFilter();
|
|
|
|
var libraryItems = byName.GetTaggedItems(new InternalItemsQuery(user)
|
|
|
|
|
|
|
|
{
|
|
|
|
var libraryItems = user != null ?
|
|
|
|
Recursive = true
|
|
|
|
user.RootFolder.GetRecursiveChildren(user, itemFilter) :
|
|
|
|
});
|
|
|
|
_libraryManager.RootFolder.GetRecursiveChildren(itemFilter);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SetItemByNameInfo(item, dto, libraryItems.ToList(), user);
|
|
|
|
SetItemByNameInfo(item, dto, libraryItems.ToList(), user);
|
|
|
|
}
|
|
|
|
}
|
|
|
|