jishi / node-sonos-http-api

An HTTP API bridge for Sonos easing automation. Hostable on any node.js capable device, like a raspberry pi or similar.
http://jishi.github.io/node-sonos-http-api/
MIT License
1.83k stars 462 forks source link

Spotify search returns success, but no music data #708

Closed brent185 closed 4 years ago

brent185 commented 4 years ago

Love this app!

just one issue though... spotify id and secret are all setup correctly. When i attempt to search:

/musicsearch/spotify/song/red+hot+chili+peppers

i get only a status object back:

{"status":"success"}

Im expecting an object with search matches. ideas?

thanks!

jishi commented 4 years ago

I'm pretty sure the behavior is supposed to queue the whole search result, not to return a list of tracks.

brent185 commented 4 years ago

ok, so it appears this is by design; the search will just play the track if it finds a match (i did confirm this works).

If anyone has extended this functionality to include returning a list of tracks, please let me know. Any implementation looking to replicate standard search use cases, will want a result set. I think the bigger missing piece here that the app doesnt make any assumptions about user experience and related data. In the case where a user searches for music, the result set should be available for the user to pick and choose what goes to the queue.

brent185 commented 4 years ago

Closing this, as it is not an issue. thank you.