mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 07:10:34 +02:00
update querying
This commit is contained in:
parent
d9f062f5aa
commit
004960476f
|
@ -1320,7 +1320,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||||
{
|
{
|
||||||
var parents = parentIds.Select(i => GetItemById(new Guid(i))).ToList();
|
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);
|
return GetItemIds(query).Select(GetItemById);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue