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 /Jellyfin.Api/Controllers/PlaylistsController.cs | |
| parent | cd4587b43f9831a9529ddaed50ba4b9935fa061b (diff) | |
Properly populate QueryResult
Diffstat (limited to 'Jellyfin.Api/Controllers/PlaylistsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/PlaylistsController.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Jellyfin.Api/Controllers/PlaylistsController.cs b/Jellyfin.Api/Controllers/PlaylistsController.cs index 1667d6ede..c18f1b427 100644 --- a/Jellyfin.Api/Controllers/PlaylistsController.cs +++ b/Jellyfin.Api/Controllers/PlaylistsController.cs @@ -208,11 +208,10 @@ namespace Jellyfin.Api.Controllers dtos[index].PlaylistItemId = items[index].Item1.Id; } - var result = new QueryResult<BaseItemDto> - { - Items = dtos, - TotalRecordCount = count - }; + var result = new QueryResult<BaseItemDto>( + startIndex, + count, + dtos); return result; } |
