fix(spotify): add pagination loop to fetch all playlist tracks - #7
fix(spotify): add pagination loop to fetch all playlist tracks#7Bi-ling-bling wants to merge 1 commit into
Conversation
…laylist track no. > 100
|
thanks for catching this! you're right, the comment claimed pagination was handled but the loop was never there. nice find. before i merge, a couple small things worth tightening up:
thanks again, this is a solid fix! |
b03cc89 to
08dbece
Compare
Description
Fixes a small issue where large Spotify playlists were capped at the initial API response limit (maximum 100 songs). While a comment noted that the function handled pagination, the logic to follow the
nextpage URL was missing.Changes
whileloop insidefetchPlaylistTracksto continuously fetch subsequent pages viacontainer.nextuntil all tracks are loaded.Testing
Tested locally with a large playlist; all tracks now load successfully without being cut off.
Functionality
Small 5-10 second delay while loading playlist.