forslund / spotify-skill

Mycroft Skill to control spotify using the Spotify Connect API
Apache License 2.0
72 stars 38 forks source link

Additional scope required for collaborative playlists #46

Open Schoonology opened 6 years ago

Schoonology commented 6 years ago

I'm setting up Mycroft to use an account with collaborative playlists in Spotify. After looking through the Spotify API documentation, it looks like the playlist-read-collaborative OAuth scope is required to include collaborative playlists in current_user_playlists().

I added the scope manually during the OAuth handshake, and confirmed that it fixes the issue. I'm still new to developing Mycroft skills, and I don't see any way where you've set the scopes for this application, so I can't see a way to create a Pull Request for this behaviour.

While I have this working for myself, I thought you might want to add the playlist-read-collaborative scope to this skill for everyone else.

Thanks! 😄

forslund commented 6 years ago

Thanks, I'm planning to update the scopes to make it possible to check if the user is premium or not to give better error messages. I'll add this as well.

If any other scope is useful let me know!