-
Notifications
You must be signed in to change notification settings - Fork 615
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
Implement 'autoplay' functionality #294
Comments
This doesn't seem to be communicated to the player, so it'll have to be an option inside |
Exactly, repeat has to be disabled this to work. |
Stole the idea and implemented it in |
@devgianlu was there any reverse engineering required, or are you just pulling the queue again once the local queue ends? |
I am using the |
FWIW: There is an endpoint for this, didn't look into it in detail though. |
@ashthespy Is there anything more to it? Doing |
@devgianlu Sorry, no I didn't have time to dump more packets and investigate. But it seems to follow the format of |
@devgianlu @ashthespy it's pretty simple. You just send a request to the autoplay endpoint as follows:
You'll then get a response, which is just a URI to a station for that playlist:
Use the normal endpoint to get the JSON payload for the station:
Then you'll get a JSON payload, which can then just be played like a station normally is. Makes sense that it's a toggle in the client, since the only thing it does is wait for the queue to empty, then makes the above requests and starts playing the radio for the given playlist. |
My implementation is obsolete then. What if autoplay is disabled? Does it still make the request? |
Haven't checked, but given it's a client toggle, I imagine if it's disabled it doesn't, and just stops playing once playlist/album is finished |
Anyone tested this? I keep getting |
I have the same as @sashahilton00 - the endpoint responds with the station |
Any status updates on this one? (Such a feature would be amazing indeed!) One possible workaround is of course to use something like shairport ( https://github.com/mikebrady/shairport-sync ) as, this way, the stream is managed by the user device (phone) and autoplay just works. |
Sometimes if I let Spotify run for a long time period I come to the end of my playlist, especially if it's really short. Therefore I have in my Spotify Desktop Client the option enabled to play similar songs on the end of the playlist.
I noticed this was not working when using librespot, would it be possible to implement this?
Regards.
The text was updated successfully, but these errors were encountered: