This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Score sort and endless loop

Tags: None
(comma "," separated)
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

Score sort and endless loop

Wed Jul 28, 2010 9:59 am
This is something I've noticed - it is (implementation-wise) the expected behaviour, but I don't think it is really the desired one.

When you sort your playlist according to the Score value, it is not uncommon for Amarok to end up looping two songs.

What happens:
1. first song is played
2. second song is played
3. score of the second song is increased
4. playlist gets sorted again and the second song is moved in front of the first
5. since the first song is now after the second, it is played
6. score of the first song is increased
7. playlist gets sorted again and the first song is moved in front of the second
...

and that goes on and on.

Any ideas how to deal with this? (I can't think of anything atm)


Image
User avatar
rocketsurgeon
Registered Member
Posts
48
Karma
0
OS

Re: Score sort and endless loop

Fri Jul 30, 2010 3:27 pm
ivan wrote:This is something I've noticed - it is (implementation-wise) the expected behaviour, but I don't think it is really the desired one.

When you sort your playlist according to the Score value, it is not uncommon for Amarok to end up looping two songs.

What happens:
1. first song is played
2. second song is played
3. score of the second song is increased
4. playlist gets sorted again and the second song is moved in front of the first
5. since the first song is now after the second, it is played
6. score of the first song is increased
7. playlist gets sorted again and the first song is moved in front of the second
...

and that goes on and on.

Any ideas how to deal with this? (I can't think of anything atm)


Yes. Don't sort your play list on criteria that are updated at the end of play...

I filed a bug report about this back in version 2.2.2 (https://bugs.kde.org/show_bug.cgi?id=224003), but to no avail.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Score sort and endless loop

Fri Jul 30, 2010 3:45 pm
rocketsurgeon wrote:Yes. Don't sort your play list on criteria that are updated at the end of play...

I filed a bug report about this back in version 2.2.2 (https://bugs.kde.org/show_bug.cgi?id=224003), but to no avail.

Well, if you have more time than our developers, you are free to give a hand.

The bug is still open AFAICT, this just means that we haven't yet found time to correct it. "No avail" is certainly the wrong word, don't you think?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
rocketsurgeon
Registered Member
Posts
48
Karma
0
OS

Re: Score sort and endless loop

Sun Aug 01, 2010 3:16 am
Mamarok wrote:
rocketsurgeon wrote:Yes. Don't sort your play list on criteria that are updated at the end of play...

I filed a bug report about this back in version 2.2.2 (https://bugs.kde.org/show_bug.cgi?id=224003), but to no avail.

Well, if you have more time than our developers, you are free to give a hand.

The bug is still open AFAICT, this just means that we haven't yet found time to correct it. "No avail" is certainly the wrong word, don't you think?


Actually, that would pretty much be the definition of "to no avail".
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

Re: Score sort and endless loop

Sun Aug 01, 2010 8:26 am
Mamarok, rocketsurgeon, please don't derail from the topic.


Image
User avatar
rocketsurgeon
Registered Member
Posts
48
Karma
0
OS

Re: Score sort and endless loop

Tue Aug 03, 2010 4:36 pm
ivan wrote:Mamarok, rocketsurgeon, please don't derail from the topic.


Fair enough - anyway, the problem is reported, but as yet unaddressed.

The work-around I've used is to sort the list, save it, clear the playlist and sorting, and then load the saved playlist. The sort order at the time of saving will now be "frozen", and by not applying any sorting, it will play in that order.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], lockheed