mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
/Items Endpoint for IncludeItemTypes=Playlist doesn't apply limit correctly #7227
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Chaphasilor on GitHub (Aug 7, 2025).
Description of the bug
When requesting playlists using the /Items endpoint without providing a parent ID and adding a
limitto the request, the returned amount of items will be incorrect if there are private playlists from other user accounts that are filtered out.Jellyfin will seemingly apply the filter after applying the limit, causing the amount of returned items to be too few.
Reproduction steps
AandB.Amakes the requests andBhas at least one private playlist, and there should be multiple public playlists on the server. The private playlist must not be the last playlists for default/alphabetical sorting (this last part only matters for the reproduction not the underlying API issue).AWhat is the current bug behavior?
Under some specific conditions (at least one private playlist by another user that would be included in the sorting + limit if it were public), the endpoint will return fewer items than requested by the limit
What is the expected correct behavior?
The filtering for private playlists should happen before or alongside applying the limit, to ensure that all user-accessible playlists up until the limit are correctly included.
Jellyfin Server version
Unstable
Specify commit id
No response
Specify unstable release number
10.11
Specify version number
10.10.7 also has this issue
Specify the build version
2025080405
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
GET <base url>/Items?SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Playlist&Recursive=true&Fields=PrimaryImageAspectRatio%2CSortName%2CCanDelete&StartIndex=0&Limit=20--> Returns 19 items, even though 24 user-accessible playlists exist
Relevant screenshots or videos
No response
Additional information
This causes pagination / infinite scroll to break in Finamp on the playlists tab, since we stop trying to fetch more playlists if the returned amount of items is less than the page size.
Yes this could be improved on our side since the
TotalRecordCountis correct, but it's still an issue nonetheless :)@jellyfin-bot commented on GitHub (Dec 6, 2025):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@Komodo5197 commented on GitHub (Dec 17, 2025):
@Chaphasilor I'm still on 10.10. Does this still happen on 10.11?