Opened 16 years ago

Closed 16 years ago

#4076 closed patch (fixed)

Extend shuffle on mythmusic to sort by artist

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

Description

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 planar.id.au> 16 years ago.
patch file for libmyth
artistshuffle.patch.mythmusic (5.2 KB) - added by Paul Lambert <paul at planar.id.au> 16 years ago.
patch file for mythmusic

Download all attachments as: .zip

Change History (4)

Changed 16 years ago by Paul Lambert <paul at planar.id.au>

Attachment: artistshuffle.patch.libmyth added

patch file for libmyth

Changed 16 years ago by Paul Lambert <paul at planar.id.au>

patch file for mythmusic

comment:1 Changed 16 years ago by paulh

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

comment:2 Changed 16 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.