mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-25 23:45:52 +03:00
[GH-ISSUE #415] convenience method to turn Page + Client into a Stream #137
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#137
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?
Originally created by @blueforesticarus on GitHub (May 25, 2023).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/415
Is your feature request related to a problem? Please describe.
client methods like playlist return tracks (and maybe other things) as a
Page. This page is currently not very useful, as any code using it should be written to deal with the case where are more pages, and (unless I missed it) there is no way in the library to get the next page. I also want to avoid refetching the first page of tracks (ie. by calling playlist_items).Describe the solution you'd like
There should be a method
Ie. one that does pagination over any Page. (For symmetry, perhaps a method on page as well, which takes a client.)
Additional context
I have a proof of concept I have pushed to my fork, see below.
@blueforesticarus commented on GitHub (May 26, 2023):
One design decision is whether to use the next url, or extracts the path from href and uses
api_get(I currently do the former). The difference (which I can think of), would be if the user is somehow using the api behind a proxy and the urls innextstill refer to "spotify.com". I do not know whether this happens or if using the api behind a proxy is even possible.@github-actions[bot] commented on GitHub (Nov 23, 2023):
Message to comment on stale issues. If none provided, will not mark issues stale
@github-actions[bot] commented on GitHub (Nov 28, 2025):
Message to comment on stale issues. If none provided, will not mark issues stale