diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-01-20 08:46:17 -0700 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2022-01-20 08:53:06 -0700 |
| commit | a60cb280a3d31ba19ffb3a94cf83ef300a7473b7 (patch) | |
| tree | 5d8df85ae958dd4ed1c4b8c5c8f568d0c82ce405 /Emby.Server.Implementations/Library/LibraryManager.cs | |
| parent | cd4587b43f9831a9529ddaed50ba4b9935fa061b (diff) | |
Properly populate QueryResult
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/LibraryManager.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index bd0c178fd..262d9fed7 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -1360,10 +1360,10 @@ namespace Emby.Server.Implementations.Library return _itemRepository.GetItems(query); } - return new QueryResult<BaseItem> - { - Items = _itemRepository.GetItemList(query) - }; + return new QueryResult<BaseItem>( + query.StartIndex, + null, + _itemRepository.GetItemList(query)); } public List<Guid> GetItemIds(InternalItemsQuery query) @@ -1493,10 +1493,10 @@ namespace Emby.Server.Implementations.Library return _itemRepository.GetItems(query); } - return new QueryResult<BaseItem> - { - Items = _itemRepository.GetItemList(query) - }; + return new QueryResult<BaseItem>( + query.StartIndex, + null, + _itemRepository.GetItemList(query)); } private void SetTopParentIdsOrAncestors(InternalItemsQuery query, List<BaseItem> parents) |
