Clementine icon indicating copy to clipboard operation
Clementine copied to clipboard

"Shuffle Album" mode doesn't work when clementine was just started

Open robotanarchy opened this issue 11 years ago • 11 comments

When you have the "Shuffle Album" mode selected, and Clementine just starts up, it will play the first track of the album and then randomly choose another album.

This also happens, when you switch the playlist. It plays the first track of the album fine, but then randomly chooses another one.

Thanks for that great music player :+1:

robotanarchy avatar Jun 08 '14 23:06 robotanarchy

I'm not sure if this important, but the playlist I'm talking about is usually very long, 14440 tracks for example.

robotanarchy avatar Jun 08 '14 23:06 robotanarchy

I was able to reproduce this (V1.2.3) and I didn't even had to wait for the track to end, just hitting next did what is described. There was an (even) odd behavior, but I'll have to test a little more (in GIT version), then I'll try to give it a look.

hrlmartins avatar Jul 25 '14 21:07 hrlmartins

Ok, I've been checking this issue out, and I need some expected behavior when a couple of situations happen:

  1. Clementine starts up and previously the "shuffle album" mode was set and simply hit play (on the selected track - the discussed case)
  2. Clementine is running and no track is paused or playing (but a track is selected). You change the shuffle mode to "shuffle album", where previously a different mode was selected, and hit play (no double click).

What I think it should happen in both cases is that it should prioritize the correspondent selected track album. What do you guys think? @robotanarchy @ArnaudBienner

Best Regards!

hrlmartins avatar Jul 27 '14 09:07 hrlmartins

Thanks for checking it out, Mikah89!

I would Clementine expect to play the album in both cases.

robotanarchy avatar Jul 27 '14 12:07 robotanarchy

Also in both cases I would expect Clementine to play from the selected track, not the first track of the album.

robotanarchy avatar Jul 27 '14 12:07 robotanarchy

yes, it seems the most natural thing to happen

hrlmartins avatar Jul 28 '14 20:07 hrlmartins

So, I've been doing some tests, and it seems the semantic of selected song is a bit different of what I thought.

It seems a selection is with a double click, what I mean is that a selection is not when you just one click the track (highlighting the track) but when you double click or right click on the track and choose play. That will be the selected track until the song ends or you double click another track. In practice what this does is, when you shutdown clementine with a selected song, with the semantic I just explained, and reopen again it will start playing the track that was playing before when you press play, regardless of which track you just one clicked. So the second situation I mentioned is kinda not valid at the moment. But anyways this would be another issue (if it even is an issue).

Related to the issue in question I think I managed to arrange something.

hrlmartins avatar Aug 03 '14 09:08 hrlmartins

Unfortunately, it seems as this issue is not yet fully fixed.

I installed version 1.2.3-1346-gcc1b504 from clementine-dev (https://launchpad.net/~me-davidsansome/+archive/ubuntu/clementine-dev). And I experience the following behavior:

  1. Set the shuffle mode to "Shuffle by album"
  2. Start playing the playlist (let's assume we play "Song 3" from "Album 7")
  3. Quit Clementine
  4. Start Clementine
  5. Resume the playlist (even though I have configured Clementine to always resume playback on start, I have to resume manually by clicking the play button)
  6. After Song 3 from Album 7 finished, it plays always Song 1 from Album 7, then Song 2 from Album 7 and so on. Interestingly, after Song 6, it skips Song 7 and plays Song 8 of Album 7.

Maybe this defect has been introduced by some other commit ...

Can someone confirm this behavior?

enemymaker avatar Sep 23 '15 19:09 enemymaker

yes, can confirm (tested with Clementine 1.3.1 on both OS X 10.11.6 and Linux Mint 18.1).

to add to what was already described: once in shuffle album mode, it will play the song that you double-click but then continue from the 1st song of the album (instead of the song that would follow the double-clicked one), ONLY if nothing was playing before (i.e. you just started the program OR stopped the playback via the stop button). that is, once something is playing and you double click on any song to start it, it will continue with the expected behavior and not the bug described here.

thanks a lot for all your efforts with clementine!

GitHorst avatar Dec 26 '17 17:12 GitHorst

This was ages ago... But was it patched?

EnduringGuerila avatar Jun 17 '21 03:06 EnduringGuerila

The original issue: yes, my comment: no

GitHorst avatar Jul 25 '22 21:07 GitHorst