Opened 14 years ago

Closed 14 years ago

#4076 closed patch (fixed)

Extend shuffle on mythmusic to sort by artist

Reported by: Paul Lambert <paul at> Owned by: paulh
Priority: minor Milestone: 0.21
Component: mythmusic Version: head
Severity: low Keywords: shuffle
Cc: Ticket locked: no


Extend the shuffle function on mythmusic so that it sorts the playlist by artist and then track.

Requires changes in playbackbox.cpp, playbackbox.h, playlist.cpp to implement the core sorting logic.

I also made a change to generictree.cpp. It wasn't clear that it was essential, but since I added an extra attribute to the tree, it seemed to make sense to increase the default number of attributes (the comment said that default number was set with mythmusic in mind). I think there were already enough attributes in the default, so arguably this change isn't necessary, but since I used another one up, I added one as well.

To test, run mythmusic, and use the "1" key to toggle through the shuffle modes. There should be a new mode "Artist", and that mode should sort the tracks in the current list by artist then track title.

Attachments (2)

artistshuffle.patch.libmyth (1.0 KB) - added by Paul Lambert <paul at> 14 years ago.
patch file for libmyth
artistshuffle.patch.mythmusic (5.2 KB) - added by Paul Lambert <paul at> 14 years ago.
patch file for mythmusic

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by Paul Lambert <paul at>

Attachment: artistshuffle.patch.libmyth added

patch file for libmyth

Changed 14 years ago by Paul Lambert <paul at>

patch file for mythmusic

comment:1 Changed 14 years ago by paulh

Milestone: unknown0.21
Owner: changed from Isaac Richards to paulh

comment:2 Changed 14 years ago by paulh

Resolution: fixed
Status: newclosed

(In [14717]) Add a new shuffle mode to MythMusic that shuffles by Artist.

Patch by Paul Lambert. Closes #4076.

Note: See TracTickets for help on using tickets.