Bug 5080 - Live search doesn't display artist with albums
: Live search doesn't display artist with albums
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 6.5.2
: PC Windows XP
: P2 enhancement (vote)
: ---
Assigned To: KDF
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-22 14:05 UTC by Jim McAtee
Modified: 2008-12-18 11:12 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
show artist/year on prefs (2.37 KB, patch)
2007-05-22 17:03 UTC, KDF
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jim McAtee 2007-05-22 14:05:31 UTC
I just noticed that the live search doesn't display the artist for albums that it finds, as the non-live version of the same search does.  If this is done for speed purposes (rather than being an oversite) then please disregard.
Comment 1 KDF 2007-05-22 16:12:04 UTC
The live search is hard-coded server side, so it is far less feature-rich than manual search as far as links.  Speed was certainly a consideration, although not sure we'd see much of a hit at this point as we have an object already available in that bit of code.
Comment 2 KDF 2007-05-22 17:03:58 UTC
Created attachment 2027 [details]
show artist/year on prefs
Comment 3 Jim McAtee 2007-05-22 17:50:28 UTC
Had to patch it by hand (damned TortoiseSVN) but here are the error I get:

Global symbol "$prefs" requires explicit package name at C:\Program Files\SlimServer Dot6\server/Slim/Web/Pages/LiveSearch.pm line 157.
Global symbol "$prefs" requires explicit package name at C:\Program Files\SlimServer Dot6\server/Slim/Web/Pages/LiveSearch.pm line 166.
Comment 4 KDF 2007-05-22 18:06:19 UTC
sorry...patch was against trunk.

$prefs->get = Slim::Utils::Prefs::get
Comment 5 Jim McAtee 2007-05-22 18:19:52 UTC
Thanks.  Works just fine in 6.5.  Follows the formatting prefs and everything.
Comment 6 KDF 2007-05-24 13:59:23 UTC
I'll target for 6.5.3 since it's an easy and tested patch, but need to look at the performance hit, as the $item->artists call is yet another poke at the db.
Comment 7 Jim McAtee 2007-05-24 14:08:25 UTC
Any chance someone in QA could load this up on an Infrant NAS with a fairly large library and do a few performance tests?  That should be pretty close to a worst-case environment.
Comment 8 Chris Owens 2007-05-24 15:23:21 UTC
I'll see what I can do.
Comment 9 Chris Owens 2007-05-29 12:34:15 UTC
Steven to have a look on a particularly slow machine.  
Comment 10 Spies Steven 2007-06-04 16:25:18 UTC
(In reply to comment #4)
> sorry...patch was against trunk.
> 
> $prefs->get = Slim::Utils::Prefs::get
> 

KDF, I am trying to apply this patch to SlimServer running on an older mac for performance testing.  I was able to successfully edit LiveSearch.pm but I do not know what to do with the above information for the patch to work.  What am I missing?  Thanks!
Comment 11 KDF 2007-06-04 16:28:56 UTC
If you've edited LiveSearch.pm from a copy of 6.5.x then you need to make one further fix (The patch was assuming code from 7.0, trunk).

replace every case of:

$prefs->get

with:
Slim::Utils::Prefs::get

That will allow the patched LiveSearch.pm to run with 6.5.3
Comment 12 Spies Steven 2007-06-04 16:42:39 UTC
Thanks, I give that a shot.
Comment 13 KDF 2007-06-20 23:37:26 UTC
any news? I can commit any time if we are sure it won't cause livesearch to start lagging too much.
Comment 14 Andy Grundman 2007-07-12 05:48:06 UTC
Moving 6.5.3 target bugs to 6.5.4.
Comment 15 KDF 2007-07-18 23:10:11 UTC
committed to trunk at change 12402, can merge to 6.5.4 if testing shows that the performance doesn't suffer.  If nothing is going on that, then lets target for 7 and I'll put in the changelog entry.  Either way..
Comment 16 KDF 2007-08-16 12:01:55 UTC
this isn't going to make 6.5.4 so I'll add the changelog note for 7 and close off tonight.
Comment 17 KDF 2007-08-16 19:14:49 UTC
changelog entry in 12584.  marking as fixed. please reopen if there are any problems.
Comment 18 Chris Owens 2008-03-07 09:05:08 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.