mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-27 00:25:53 +03:00
[PR #531] [CLOSED] Load playlist listing greedily #878
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#878
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
📋 Pull Request Information
Original PR: https://github.com/Rigellute/spotify-tui/pull/531
Author: @jackkinsey
Created: 7/21/2020
Status: ❌ Closed
Base:
master← Head:many-playlists📝 Commits (1)
4155e9eContinue loading playlists until all are loaded📊 Changes
1 file changed (+26 additions, -2 deletions)
View changed files
📝
src/network.rs(+26 -2)📄 Description
Fixes #116.
This change defies the pagination model the rest of the application seems to be using, requesting pages of playlists until all playlists have been loaded. (It's also slightly hacky in doing so.)
I totally understand if you don't want to go this route with the app, but I figured I might as well show up with some working code to get the conversation started. (Obligatory note about being a Rust beginner/apologies if my code isn't idiomatic.)
Thanks for making this! It's super cool, I look forward to using it more.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.