bencevans / node-sonos

🔈 Sonos Media Player Interface/Client
https://www.npmjs.com/package/sonos
MIT License
702 stars 147 forks source link

Searching spotify tracks #415

Closed svrooij closed 4 years ago

svrooij commented 5 years ago

I was always wondering how Sonos searches for tracks on remote services. Now I've found out that is uses https://spotify-v4.ws.sonos.com/ this domain for searching stuff on spotify.

That url also seems to be in this gist, that lists all the available music services. Also available in the MusicService -> ListAvailableServices

I've also found the WSDL here

So I was wondering if it would be possible to search Spotify (or any other connected services) for tracks. Anyone got any ideas?

Villarrealized commented 5 years ago

Interesting. I always assumed they were using the various APIs provided by other music services to do that. That's what I ended up doing for Sonos Web and it works well. Spotify has a great API. I would loathe to deal with the SOAP wrapper that Sonos probably put on it.

svrooij commented 4 years ago

@Villarrealized you want to solve this? Closing the issue for now because it seems impossible. You can always re-open if you want to give it a try.