guilhermesad / rspotify

A ruby wrapper for the Spotify Web API
MIT License
717 stars 290 forks source link

Why not all of my playlists are visible? #244

Open depesz opened 2 years ago

depesz commented 2 years ago

This is mostly question, but bug. But - registered API key, wrote sample script, and for some reason, even with paging, I just get some (60) of my playlists. Some, not necessarily newest, or oldest (I think) are missing.

Not sure how to check it differently, but I seem to recall at one point trying to use another tool/library, and the same problem was there - not all playlists were there.

Is there anything I can look into to find them?

aquaflamingo commented 2 years ago

Hi @depesz, you might need to set the limit keyword value in the playlists instance method for user. I ran into this as well, see documentation

depesz commented 2 years ago

I played with limit and paging. Whatever I do i just get some of playlists.

bitangxxx commented 3 months ago

It's a quite old question, but maybe someone can use this: you have to set the proper scopes for the user in the Omniauth initializer and re-authorize the user. In my case playlist-read-private and playlist-read-collaborative scopes made the magic.