diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2026-05-04 12:06:11 +0900 |
|---|---|---|
| committer | dkanada <dkanada@users.noreply.github.com> | 2026-05-04 12:06:11 +0900 |
| commit | ec990be12af3856eea597ba7ebdd5dbfa5b01ace (patch) | |
| tree | f79b91990e49bddf74e8fcd7fb25471f09d0494a /Jellyfin.Api/Controllers/PersonsController.cs | |
| parent | eacdc83fda01b712d2f9821e6624449304395486 (diff) | |
fix person TotalRecordCount when limit is applied
Diffstat (limited to 'Jellyfin.Api/Controllers/PersonsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/PersonsController.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/PersonsController.cs b/Jellyfin.Api/Controllers/PersonsController.cs index 2b2afb0fe6..bc58580741 100644 --- a/Jellyfin.Api/Controllers/PersonsController.cs +++ b/Jellyfin.Api/Controllers/PersonsController.cs @@ -106,9 +106,11 @@ public class PersonsController : BaseJellyfinApiController }); return new QueryResult<BaseItemDto>( - peopleItems - .Select(person => _dtoService.GetItemByNameDto(person, dtoOptions, null, user)) - .ToArray()); + peopleItems.StartIndex, + peopleItems.TotalRecordCount, + peopleItems.Items + .Select(person => _dtoService.GetItemByNameDto(person, dtoOptions, null, user)) + .ToArray()); } /// <summary> |
