Bug 240772 - Tracks in a playlist set to Random Tracks are replayed though they were just played, and playlists keep being played as if Repeat mode were on
Summary: Tracks in a playlist set to Random Tracks are replayed though they were just ...
Status: RESOLVED DUPLICATE of bug 221798
Alias: None
Product: amarok
Classification: Applications
Component: Playlist (show other bugs)
Version: 2.3.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-05 00:18 UTC by Leonardo La Malfa
Modified: 2010-07-12 23:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (28.46 KB, image/png)
2010-06-05 13:23 UTC, Leonardo La Malfa
Details
Screenshot2 (201.45 KB, image/png)
2010-06-05 22:43 UTC, Leonardo La Malfa
Details
Screenshot3 (183.83 KB, image/png)
2010-06-05 22:46 UTC, Leonardo La Malfa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo La Malfa 2010-06-05 00:18:24 UTC
Version:           2.3.1 (using KDE 4.4.3) 
OS:                Linux

Up to last version (2.3.0) when an album was added to the playlist, Amarok invariably played each song once, then stopped - which was impeccable. Now, it often happens to play again the same song that has just ended, or another one that's already played, rather than favoring tracks that haven't been played yet. Also, when all tracks have been played, it doesn't stop, but keeps playing the same songs all over again.

Reproducible: Always

Steps to Reproduce:
1 Add an album to the playlist.
2 Press play.
3 Check which tracks are being played.
4 Wait for the album to end.


Actual Results:  
I verified that while tracks whose play count still showed at 0, others which showed 1 or 2 were being played again. Ultimately, I waited for the music to stop, but waited in vain.

Expected Results:  
Each song from the album should play only once, then Amarok should stop.

OS: Linux (i686) release 2.6.32-22-generic
Compiler: cc
Comment 1 Myriam Schweingruber 2010-06-05 02:09:33 UTC
Please remove the track progression settings you have, it's likely you have repeat track enabled.
Comment 2 Myriam Schweingruber 2010-06-05 02:15:30 UTC
Please have a look at this image: http://www.binaryelysium.com/images/amarok-track-prog.jpeg
Comment 3 Leonardo La Malfa 2010-06-05 13:23:35 UTC
Created attachment 47701 [details]
Screenshot

Track progression has always been set to Random Tracks, by which I mean that it remained so through the upgrade from v. 2.3.0 to 2.3.1. If before it played flawlessly the way described in my first report, then now its behavior has changed, and looks like a bug to me. In fact, I prefer to listen to my album tracks in a random order, which should not imply that tracks are repeated, let alone the whole album, or entire playlists. Please, check the screenshot.
Comment 4 Myriam Schweingruber 2010-06-05 17:57:57 UTC
Thank you for the feedback. Please try disabling the random track anyway, and set it again to check if it is reproducible.
Comment 5 Leonardo La Malfa 2010-06-05 18:49:40 UTC
When Track Progression is set to Standard, Amarok behaves as expected: tracks 
are played progressively, and when the playlist reaches the end, playback 
stops. I will leave it so, as a workaround, although for longer playlists made 
of different artists it may not be ideal. Thank you!
Comment 6 Myriam Schweingruber 2010-06-05 18:56:41 UTC
You misunderstood my question. Does the behavior return when you set to Random tracks again?
Comment 7 Leonardo La Malfa 2010-06-05 22:43:34 UTC
Created attachment 47719 [details]
Screenshot2

Yeah, I didn't get that. I followed your guidelines, but it didn't work as expected. If you take a look at Screenshot2 you'll see what I mean: track #1, Humming, had just been played ("within the last minute"), nonetheless Amarok is playing it again. Not only that, but it's also scheduled to be the next track to be played. I know this is not the intended behavior, for I used Amarok in Random Tracks mode satisfactorily on v. 2.3.0.
Comment 8 Leonardo La Malfa 2010-06-05 22:46:51 UTC
Created attachment 47720 [details]
Screenshot3

Screenshot3 shows that even if the playlist contains 1 track only, it'll be replayed as if in Repeat mode until stopped. I know it doesn't make sense to use Random Tracks for a single track, but my intention was to show the issue repeats regardless. If I let it play, play count just keeps adding up.
Comment 9 Myriam Schweingruber 2010-06-07 23:15:32 UTC
Well, in your last screenshot you set the playlist action to "Random tracks", but since there is only one track, it can only play this one. Nothing wrong about that. What counts is the one in the screenshot in comment #7

Strangely nothing was changed in that code AFAIK between 2.3.0 and 2.3.1, so no idea where this comes from. Also I tried here with current git and can't reproduce this at all.
Comment 10 Leonardo La Malfa 2010-06-07 23:49:18 UTC
> Well, in your last screenshot you set the playlist action to
> "Random tracks", but since there is only one track, it can only play this
> one. Nothing wrong about that.

In my view, what's wrong about it is that the single track is being played over and over again, while it should only play once, if Repeat mode is not on. Random tracks does not imply Repeat Track, does it? At least, it didn't in the previous version.
Comment 11 zespy 2010-06-12 13:51:17 UTC
hello!
I wanted to create a new bug report but I finally found this one (it's a pity that the world "random" doesn't appear in the summary because this bug is only for this mode)

I post just to say that leonardo isn't the only one to have this bug and it is quite ennoying (if you could fix it in another version...)

as leonardo said: "Random tracks does not imply Repeat Track"

------------------

Overview:
When you listen to music on amarok 2.3.1 with the random mode ON (and NOT the replay mode), the playlist is repeated as if the replay mode was activated too.
It didn't do that in the 2.3.0 version.

Steps to reproduce:
activate the random mode and play one or more song. this song will be replayed and replayed to infinity.

Actual results:
the playlist is repeated whereas I haven't activated the replay mode, only the random one.

Expected results:
It should stop the music once the entire playlist has been played, as it did in v2.3.0.

Build date and plateform:
I had this bug since I use amarok 2.3.1 which has been compiled on "May 30 2010".
I run debian sid with KDE 4.4.4
Comment 12 Myriam Schweingruber 2010-06-12 15:56:30 UTC
Changing to confirmed.
Comment 13 langstr 2010-07-12 23:56:08 UTC
The new "Random implies Repeat" behaviour is as-planned, as part of an extensive refactoring / fixing of the track navigator code.

See extensive discussion in this older bug report: BUG 221798

Please continue further "Repeat" discussion in that older bug report.

*** This bug has been marked as a duplicate of bug 221798 ***
Comment 14 langstr 2010-07-12 23:58:26 UTC
About the "Recently-played song is replayed again" issue:

Short answer: stick to the standard "Favor = None" setting.

For background and further discussion, use this separate bug report (which I've just made): BUG 244442