Bug 973 - clicking play in web interface on an artist that only has one album puts tracks in wrong order
: clicking play in web interface on an artist that only has one album puts trac...
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 6.0.0
: Macintosh All
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-08 15:23 UTC by Kevin Pearsall
Modified: 2008-12-15 11:57 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Pearsall 2005-03-08 15:23:51 UTC
shuffle is off.

but if i go to browse artists and click play on morphine, the one album in
morphine (the night) gets added in the wrong order.

if i go in to browse artists -> morphine and click play next to the night, it
plays in the proper order.
Comment 1 Kevin Pearsall 2005-03-08 16:19:15 UTC
reproduced this on my linux machine as well...  it shuffles when you press play
on the artist, even if shuffle is disabled.

url looks something like this:
http://fallacy.org:9000/status_header.html?command=playlist&sub=loadtracks&artist=82&player=00%3A04%3A20%3A05%3A15%3A82
Comment 2 Vidur Apparao 2005-03-09 13:05:11 UTC
Is it really only if there's a single album? Seems like it may be an issue for
any  number of albums.

I believe the culprit is line 1666 in Slim::Control::Command (r2365):

	return @{ $ds->find('track', \%find, exists $find{'album'} ? 'tracknum' :
'title') };

We're using 'title' as the orderby parameter if there's no album specified in
the query.
Comment 3 Dan Sully 2005-03-09 14:18:00 UTC
I believe we should be using 'track' instead of 'title'.
Comment 4 Dan Sully 2005-03-10 00:22:43 UTC
Fixed in subversion change 2400.
Comment 5 Kevin Pearsall 2005-03-21 10:55:37 UTC
looks much better now
Comment 6 James Richardson 2008-12-15 11:57:14 UTC
This bug has been fixed in the latest release of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.