Bug 1766 - New Music -> All Songs shows wrong songs
: New Music -> All Songs shows wrong songs
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Player UI
: 6.1.0
: Macintosh All
: P2 normal (vote)
: ---
Assigned To: Chris Owens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-06 08:16 UTC by Blackketter Dean
Modified: 2009-09-08 09:26 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments
the story so far (1.72 KB, patch)
2005-07-19 00:46 UTC, KDF
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Blackketter Dean 2005-07-06 08:16:44 UTC
Browsing New Music -> All Songs shows everything in the library and takes minutes to complete.
Comment 1 Jim McAtee 2005-07-06 11:35:04 UTC
Additional broken behavior of New Music -> All Songs.

Tracks are displayed as

TRACKNUM. TITLE by

without an artist listed.  Seems this should be displayed the same as track 
listings in other browse modes

TRACKNUM. TITLE from ALBUM by ARTIST

Second, clicking a track name brings you to a page with a single link showing 
the track's album.  I would assume this should take you to the detailed track 
information page.

Third, clicking that album link brings you to a page displaying two 
links: "Play this song" and "Add this song to the playlist".  Clicking these 
links will play (or enqueu) the entire New Music "All Songs" list of tracks.
Comment 2 KDF 2005-07-06 11:43:38 UTC
please file these as individual bugs so they can be tracked separately, and are
more easily searchable by summary
Comment 3 KDF 2005-07-06 11:59:44 UTC
actually, J, the all three issues in comment 1 look like they are the same cause
(heirarchy=track,album, instead of just track). 

Probably makes sense to just make all three into one new bug.  There are few
more issues that are closely related to that, which I'll tack into the new bug.
Comment 4 Dan Sully 2005-07-12 09:19:49 UTC
*** Bug 1807 has been marked as a duplicate of this bug. ***
Comment 5 KDF 2005-07-12 11:49:50 UTC
The trick here is that the "new music" listing is just doing a find on albums,
using the 'age' sort order, and a limit on the number of items displayed.  The
find still refers to a complete list, thus the 'all' option drops into all
songs, rather than a new find based on the listed albums.  the same applies for
the 'play all' from web OR player, the list of songs is a find for all albums.

Comment 6 KDF 2005-07-13 16:30:57 UTC
I've got a working idea that makes use of a listref param in the url. The
listref is stored temporarily as a client->param (same way we do musicmagic
mixes). The listref is a hash linking types and the list of that type (ie
'album' => [437,23,458], for a list of albums).  The only thing missing now is a
way to tell when the list has been limited.  For new albums, the 'find' key
takes care of the sorting by age, and limiting the number of items returned. 
Any suggestions on how to detect this?
Comment 7 KDF 2005-07-19 00:46:09 UTC
Created attachment 649 [details]
the story so far

This uses the album list to create a listref.  When this exists, the song list
is limited to those albums.  Right now, this gets into all album lists, which
isn't ideal.  It is only of benefit when the album lis is filtered (a full find
on all songs is faster than a find all songs for all albums).  I still need a
way to detect if the $limit param has been used on the album find (as done for
new music).
hopefully this stuff will be of use if anyone is trying to do this, or someone
can offer any ideas on how to complete this.
Comment 8 Dan Sully 2005-07-19 14:02:38 UTC
Pushing this off to post 6.1
Comment 9 Blackketter Dean 2005-10-13 13:09:08 UTC
it's much faster now, but still shows all songs.  First step is to show all tracks where age < threshold.  
sorting is a bonus.
Comment 10 Dan Sully 2005-10-15 18:02:05 UTC
Fixed!

Subversion change 4627 and change 4640
Comment 11 David Brittain 2006-10-09 03:28:54 UTC
This doesn't seem to work correctly in 6.5.1, I get completely the wrong list of songs. Running latest 6.5.1 on Mandrake linux.
Comment 12 Jim McAtee 2006-10-09 16:23:37 UTC
Yes, it's broken in the trunk as well.  I get every track in the library, sorted by album name, disc number, track number.
Comment 13 Chris Owens 2007-10-15 09:47:06 UTC
I understand this link has been removed, which in some sense is a fix.
Comment 14 Chris Owens 2008-03-07 09:03:41 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.