spotify-player icon indicating copy to clipboard operation
spotify-player copied to clipboard

[Feature] Paginate very large playlists

Open RiverOmega opened this issue 5 months ago • 2 comments

Is your feature already implemented in the latest master? No

Is your feature request related to a problem? Please describe. Not sure, tried searching the issues but came up empty.

Describe the solution you'd like When loading a very large playlist (thousands upon thousands of songs) the client takes a long time indexing all of them. Instead, it would be nice if the client could load pages (size around 100 maybe?) progressively as you scroll/play along.

Describe alternatives you've considered Pagination is a common concept when handling large lists, I haven't really considered other alternatives.

Additional context No

RiverOmega avatar Jul 28 '25 07:07 RiverOmega

The pagination logic can probably be implemented by spawning an async task in background that lazily fetches the track data page-by-page and update the data stored in the state. In other words, the task should implement the logic in https://github.com/aome510/spotify-player/blob/b92c7379b192e6492ec37b722ecb9934e6803c2f/spotify_player/src/client/mod.rs#L1318-L1323

but instead update the state upon fetching a new page.

aome510 avatar Aug 05 '25 14:08 aome510

Duplicate of #502

aome510 avatar Sep 06 '25 01:09 aome510