[mythtv-commits] Ticket #3550: MythMusic has duplicate entries under "All My Music" after applying a filter

MythTV mythtv at cvs.mythtv.org
Sun Jun 3 16:13:10 UTC 2007


#3550: MythMusic has duplicate entries under "All My Music"  after applying a
filter
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  ijr    
     Type:  defect     |      Status:  new    
 Priority:  minor      |   Milestone:  unknown
Component:  mythmusic  |     Version:  head   
 Severity:  medium     |  
-----------------------+----------------------------------------------------
 Say I'm listening to a track by a artist called ARTIST.  If I hit 'f',
 select "Tracks by this artist" then navigate to "All My Music", I will see
 2 entries of "Artists (A B C D E)".  The first one will contain only
 "ARTIST" and the second one will contain all of the artists between [A-E]
 including "ARTIST".  The reason for this is that when the filter is
 applied, the metadata for all tracks except those by "ARTIST" get
 setVisible set to false.  In Playlist::fillSongsFromSonglist, the
 following code executes:

 if(filter) {
     all_available_music->buildTree();
     all_available_music->sortTree();
 }

 AllMusic::buildTree() will only add entries for "ARTIST" because they will
 be the only tracks where isVisible() returns true.  What this *doesn't* do
 is first clear the tree data previously stored in all_available_music,
 meaning that the duplicate appears.

 The attach file fixes this as well as ticket #3536

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3550>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list