Skip to content

feat(library): support pagination fetching for library items - #47

Open
victoria-rose wants to merge 1 commit into
NUber-dev:mainfrom
victoria-rose:fix/library-pagination
Open

feat(library): support pagination fetching for library items#47
victoria-rose wants to merge 1 commit into
NUber-dev:mainfrom
victoria-rose:fix/library-pagination

Conversation

@victoria-rose

Copy link
Copy Markdown

Summary

This PR resolves the 25-item hardcap when loading user library playlists, albums, and artists by recursively fetching InnerTube continuation tokens (up to 100 pages).

Description

Previously, loading a user's library items would only retrieve the first page of results (capped at 25 items) because continuation tokens returned by the InnerTube API were ignored.

This change updates the library loading functions to check for continuation tokens in the InnerTube payload and retrieve them recursively. For safety and performance, recursion is capped at 100 pages.

Testing Done

  • Verified that all library items (playlists, albums, and artists) beyond the initial 25 load and render successfully.
  • Verified that pagination stops correctly when no further continuation tokens are returned or the page limit is reached.

Fetch continuation tokens recursively (up to 100 pages) when loading library playlists, albums, and artists, resolving the 25-item hardcap.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant