|
|
|
@ -1329,7 +1329,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 GetItems(query);
|
|
|
|
|
}
|
|
|
|
@ -1345,7 +1345,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|
|
|
|
|
|
|
|
|
}, CancellationToken.None).Result.ToList();
|
|
|
|
|
|
|
|
|
|
//query.TopParentIds = userViews.SelectMany(GetTopParentsForQuery).Select(i => i.Id.ToString("N")).ToArray();
|
|
|
|
|
query.TopParentIds = userViews.SelectMany(GetTopParentsForQuery).Select(i => i.Id.ToString("N")).ToArray();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|