raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.41k stars 3.1k forks source link

[spotify-player] `getUserPlaylists` hard-coded 50 limit #7807

Closed cadrianxyz closed 1 year ago

cadrianxyz commented 1 year ago

Extension

https://www.raycast.com/mattisssa/spotify-player

Description

Is there a reason that this is limited to 50? Is that the Spotify API cap of some sort? https://github.com/raycast/extensions/blob/e842e281b9a57148f8a824ef757bcda0cceecb87/extensions/spotify-player/src/api/getUserPlaylists.ts#L6C1-L7C1

If it is a limit from the spotify API, I could be interested in contributing to this, maybe having it re-query the libraries during search.

Who will benefit from this feature?

Anyone (other than me) who has way over 50+ playlists in the Spotify library

Anything else?

No response

raycastbot commented 1 year ago

Thank you for opening this issue!

🔔 @mattisssa @peduarte @sxn @dillionverma @andreaselia @stuart @tonka3000 @dancannon @pernielsentikaer you might want to have a look.

💡 Tip: Once the issue is resolved, comment @raycastbot close this issue to close it.

peduarte commented 1 year ago

Hey, yeah Spotify limits it to 50. We're looking to introduce a Pagination Component, that will make it easier for users to fetch more data.

raycastbot commented 1 year ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

raycastbot commented 1 year ago

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.

djpowers commented 1 year ago

I came here via search while checking if this had been reported. I confirmed by cross-referencing the "Liked Songs" playlist in my library that only the most recent 50 tracks are available via the "Your Library" Raycast command.

My thought was also to re-query as the search is made, but it appears both the Get User's Playlists and Get Playlist Items API endpoints have the maximum number of items to return limited at 50, and does not provide a way to filter by field.