update querying

This commit is contained in:
Luke Pulverenti 2015-11-16 12:35:23 -05:00
parent d9f062f5aa
commit 004960476f

View File

@ -1320,7 +1320,7 @@ namespace MediaBrowser.Server.Implementations.Library
{
var parents = parentIds.Select(i => GetItemById(new Guid(i))).ToList();
query.AncestorIds = parents.SelectMany(i => i.GetIdsForAncestorQuery()).Select(i => i.ToString("N")).ToArray();
query.TopParentIds = parents.SelectMany(GetTopParentsForQuery).Select(i => i.Id.ToString("N")).ToArray();
return GetItemIds(query).Select(GetItemById);
}