Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playlist pagination #1010

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ailac22
Copy link

@ailac22 ailac22 commented Aug 14, 2022

Added pagination to playlists. Now playlist pages can be scrolled with usual ctrl+u, ctrl+d keys, so all playlist and not just the 50 first ones will be available.

I'm aware that the author was planning a change in the program's structure that will possibly make this pr useless in the future, but for me the app is quite unusable without all my playlists. Also, unsure if my code is quite rust-like, specifically at the new functions in ScrollableResultPages, or in get_current_user_playlists, but it gets the job done for now. Listing playlists with spt list --playlists still return only the first playlist page.

Let me tell you what you think about it. Thanks.

Playlist have been turned also into a ScrollableResultPages, and
scrolling between playlist pages can be done via the usual Ctrl-u,
Ctrl-d shortcuts. Also, deleting and following playlist is functional with this new
system.
@ailac22 ailac22 marked this pull request as ready for review August 28, 2022 22:19
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.

None yet

1 participant