GNOME Bugzilla – Bug 585613
Random by Score shuffle mode
Last modified: 2009-07-08 17:14:17 UTC
Gabriel suggested to add a new shuffle mode based on song ratings, similar to bug 544680.
erm, Score, not Rating
Created attachment 136483 [details] [review] Shuffle by Score This patch groups scores into 20 slots: 1-5, 6-10, ..., 96-100; and uses the same weights as bug 544680 but adjusted to the number of slots: [1, φ^(1/4), φ^(2/4), ..., φ^(19/4)]
Created attachment 136534 [details] [review] Fixed SQL queries
Thanks Alexander!
I just refactored the random-by code, so the patch now needs work. Also, I fixed a bug with random by artist/album/rating not working correctly for playlists (see the Query code in RandomByArtist.cs for example)
Created attachment 138050 [details] [review] Adapted to the new RandomByX classes
Looks good, thanks Alexander :)
Committed, thanks for a quick review!