aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ItemsController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-05-30 10:00:53 +0200
committerGitHub <noreply@github.com>2023-05-30 10:00:53 +0200
commit6dca53047faf014314a63221771180be2a33259a (patch)
treedee45f5871c6f40701d7681983685d7270cad0eb /Jellyfin.Api/Controllers/ItemsController.cs
parentd8f0933f335044249048e9ae0c0030ca0b780fee (diff)
parent81746666ded02f844605fb26bc1c0ac2dd650bb0 (diff)
Merge pull request #9818 from Shadowghost/fixes
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>