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

API load with shuffle starts at first song anyway #555

Open
AndreKR opened this issue Jan 22, 2023 · 0 comments
Open

API load with shuffle starts at first song anyway #555

AndreKR opened this issue Jan 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@AndreKR
Copy link

AndreKR commented Jan 22, 2023

Describe the bug
With #330 a shuffle parameter was added to the API call POST /player/load. According to the issue, the purpose of this parameter is to solve this problem:

It is a bit annoying over time, when my playlists always start with the 1st song in the list.

I'm using this shuffle parameter and it does in fact enable shuffle mode, but it still starts with the first song in the playlist.

To Reproduce

  • Set up librespot-java with API.
  • Assuming librespot-java listens on 192.168.1.1, call:
POST http://192.168.1.1:24879/player/load
Content-Type: application/x-www-form-urlencoded

uri=spotify:playlist:6w7Lsb0JCGEq8f2pBgoZtr&play=true&shuffle=true

It will always start playing with "Jedi Mind Tricks, Sean Price - Blood Runs Cold", the first song in the playlist.

Expected behavior
Playback should start at a random song in the playlist.

Version/Commit
1.6.2 built from https://github.com/librespot-org/librespot-java/archive/refs/tags/v1.6.2.zip using this Dockerfile.

@AndreKR AndreKR added the bug Something isn't working label Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant