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 /MediaBrowser.Controller/Entities/Folder.cs | |
| parent | cd4587b43f9831a9529ddaed50ba4b9935fa061b (diff) | |
Properly populate QueryResult
Diffstat (limited to 'MediaBrowser.Controller/Entities/Folder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Folder.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index 55551e70e..79ffddc00 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -783,11 +783,10 @@ namespace MediaBrowser.Controller.Entities returnItems = returnItems.Skip(startIndex.Value); } - return new QueryResult<BaseItem> - { - TotalRecordCount = totalCount, - Items = returnItems.ToArray() - }; + return new QueryResult<BaseItem>( + query.StartIndex, + totalCount, + returnItems.ToArray()); } private bool RequiresPostFiltering2(InternalItemsQuery query) |
