aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ItemsController.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2023-05-26 10:59:49 +0200
committerShadowghost <Ghost_of_Stone@web.de>2023-05-26 11:06:04 +0200
commit81746666ded02f844605fb26bc1c0ac2dd650bb0 (patch)
treecbd0f7461a314d601772149691fc2a66d8223300 /Jellyfin.Api/Controllers/ItemsController.cs
parentd67f10ba8c858626a8c9ea39c7cc48e3aa6ff415 (diff)
Fix TotalRecordCount calculation
Diffstat (limited to 'Jellyfin.Api/Controllers/ItemsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ItemsController.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.cs
index d4116116b..7650b861f 100644
--- a/Jellyfin.Api/Controllers/ItemsController.cs
+++ b/Jellyfin.Api/Controllers/ItemsController.cs
@@ -512,12 +512,10 @@ public class ItemsController : BaseJellyfinApiController
result = new QueryResult<BaseItem>(itemsArray);
}
- // result might include items not accessible by the user, DtoService will remove them
- var accessibleItems = _dtoService.GetBaseItemDtos(result.Items, dtoOptions, user);
return new QueryResult<BaseItemDto>(
startIndex,
- accessibleItems.Count,
- accessibleItems);
+ result.TotalRecordCount,
+ _dtoService.GetBaseItemDtos(result.Items, dtoOptions, user));
}
/// <summary>