From a60cb280a3d31ba19ffb3a94cf83ef300a7473b7 Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Thu, 20 Jan 2022 08:46:17 -0700 Subject: Properly populate QueryResult --- Jellyfin.Api/Controllers/PlaylistsController.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Jellyfin.Api/Controllers/PlaylistsController.cs') 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 - { - Items = dtos, - TotalRecordCount = count - }; + var result = new QueryResult( + startIndex, + count, + dtos); return result; } -- cgit v1.2.3