Bugzilla – Bug 13062
Songinfo Query fails in 7.4
Last modified: 2009-10-05 14:33:28 UTC
I'm doing the following query in iPeng to get the album ID of a track: [code] ["",["songinfo",0,100,"track_id:8338","tags:e"]] [/code] This works fine in 7.3 but fails in 7.4, in the log file I get: [code] [09-07-26 16:06:56.6391] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch! [09-07-26 16:06:56.6667] Slim::Control::Request::execute (1911) Error: While trying to run function coderef [Slim::Control::Queries::songinfoQuery]: [Can't call method "currentSongForUrl" on an undefined value at /usr/share/perl5/Slim/Control/Queries.pm line 5046. ] [/code]
Alan - songinfo is a database query and should not require a client object. But the current code does: if (my $song = $request->client->currentSongForUrl($track->url)) { my $t = $song->currentTrack(); if ($t->url ne $track->url) { $parentTrack = $track; $track = $t; } } We should probably check for a client before calling this?
Andy - this is sqlite branch change only. No need to fix in 7.4 unless we backport Alan's meta data changes.
Fixed in change 28027.
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server! * SqueezeCenter: 28672 * Squeezebox 2 and 3: 130 * Transporter: 80 * Receiver: 65 * Boom: 50 * Controller: 7790 * Radio: 7790 Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.