-
Notifications
You must be signed in to change notification settings - Fork 655
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
Reordering songs in the queue causes them to appear duplicated or in a different order #1464
Comments
To get the version you are using run the following command, but as you just installed it via cargo it should probably be librespot --version The issue sounds similar to #861. And should be fixed on the dev branch as the whole logic around the queue was reworked to support the dealer and fix various issues around it. One way to install the latest version is via cargo itself. cargo install --git https://github.com/librespot-org/librespot |
@photovoltex Thank you for your response! I've just installed the latest dev version. It seems to be fine now when queuing items after connecting to Librespot (it does refresh the UI briefly though, I guess that's expected). Unfortunately it still reorders songs inadvertently if I connect to Librespot AFTER setting up a queue, i.e. with an existing queue. Would you like me to upload a log as well? |
I don't think a log will help all to much, as you can usually reproduce it pretty well if we have enough information how to. As it seems to be related to transferring the log wouldn't even be helpful as the transfer data is send base64 encoded and the decoded object isn't printed to the log. Anyhow, could you explain the issue at a short example maybe? The following questions might help to provide all the required info to reproduce the issue consistently^^
|
@photovoltex I've created a screen recording that should answer your questions and shows the issue Spotify.queue.issue.mp4 |
From a quick test to reproduce it. It seems like the actual queued items are transferred correctly. But changes in the context seem to be missing? OHHH... well... yeah that make sense xD Eh, short breakdown how we transfer:
Soo yeah... the behavior make sense, as we currently fully ignore the changes in the context or rather resolve the context from scratch instead of taking the hint provided by the transfer request. I think if I remember correctly the transferred data contain items of the context, but only a few... It might be that these items are used to communicate the reordered items. Anyhow good find :D |
Huh... interesting behavior shown by the recording, that's not at all what I expected, thanks for recording^^. Will take a deeper look into it later. Might be also related to some missing transfer related logic as explained above. |
Description
I'm using the Android Spotify app and have songs in my queue. When I go to the queue and drag a song to a different location in the queue, it puts it in a different location than where I moved it to and sometimes it duplicates the song.
Version
What version(s) of librespot does this problem exist in?
I'm not very familiar with cargo. I've installed it on 15 December 14:19 NZT
How to reproduce
librespot -n "Librespot Speaker" -b 160
Log
Sorry, it was too long for both here and in Pastebin unfortunately. See this file:
librespot.log
Host (what you are running
librespot
on):The text was updated successfully, but these errors were encountered: