devgianlu / go-librespot

Yet another open source Spotify client, written in Go.
GNU General Public License v3.0
133 stars 16 forks source link

skip_to_uri in Album playback? #49

Closed thilojaeggi closed 4 weeks ago

thilojaeggi commented 3 months ago

When playing an Album I want to skip. to another Song in the album via the URI, if I use the normal /player/play endpoint with "uri" it clears the "next songs" and I can't go back or forward in the album, I've tried using skip_to_uri for this but that doesn't seem to work at all.

devgianlu commented 3 months ago

I have improved the skip to logic by checking not only the URI, but the GID too. Anyway, that is the correct way to go about it, let me know if the situation has improved.

devgianlu commented 4 weeks ago

Closing for inactivity.

thilojaeggi commented 3 weeks ago

Just tried this out. When skipping to a song and putting the uri for the track to skip to both as uri and skip_to_uri plays the track but it also clears queue?

devgianlu commented 2 weeks ago

@thilojaeggi I have added the uri POST parameter to the /player/next API so that you can skip to a track specifically without having to reload the context.