Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify Free account support ? #546

Open
Paco777 opened this issue Aug 20, 2023 · 0 comments
Open

Spotify Free account support ? #546

Paco777 opened this issue Aug 20, 2023 · 0 comments

Comments

@Paco777
Copy link

Paco777 commented Aug 20, 2023

Hi,
Does this API works with a free Spotify account ?

I have switched my Spotify account from Premium to Free, and i cannot get this Sonos api to work anymore.
I'm trying to play Spotify playlists which is something I can do without any problems (as a Free user) with the Sonos app.

One problem might be that the play() method adds the songs of the playlist to the queue, which is probably not supported by a free account (which only allows playlists to be played randomly, and prevents tracks to be played directly, i think).
I suppose it should not use the queue, but do something like playTuneinRadio().

Unfortunately, I could not get anything to work with playSpotifyRadio() either.
When I run the sample :

     var artistId = '5WUlDfRSoLAfcVSX1WnrxN'
     var artistName = 'Sia'

     await sonos.office.playSpotifyRadio(artistId, artistName).then(success => {
       console.log('Yeay')
     }).catch(err => { console.log('Error occurred %j', err) })

I have displayed in the console :
Error occurred {}
and the Sonos app displays the following message:
Unable to play "Queen" - the associated service account cannot be found in your Sonos system.

Do I have to do anything special to play playlists/albums/artists from a free Spotify account ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant