Bugzilla – Bug 12681
Custom title format with DURATION breaks Pandora (possibly others)
Last modified: 2010-03-01 02:29:14 UTC
When playing a Pandora channel from SqueezeCenter (not SqueezeNetwork) on my SB2, the "Now Playing" screen is blank (except for the sound meter graphic). In other words, it doesn't display any track information at all. I get the following error in /var/log/squeezecenter/server.log over and over again when "Now Playing" is being displayed: 09-07-05 11:14:34.2564] Slim::Display::Graphics::render (108) Error: bad lines function - non hash based display formats are depreciated [09-07-05 11:14:35.2570] Slim::Display::Display::curLines (481) Error: bad lines function: Can't call method "duration" on unblessed reference at /usr/lib/perl5/vendor_perl/Slim/Music/TitleFormatter.pm line 220. [09-07-05 11:14:36.2567] Slim::Display::Display::curLines (481) Error: bad lines function: Can't call method "duration" on unblessed reference at /usr/lib/perl5/vendor_perl/Slim/Music/TitleFormatter.pm line 220. [09-07-05 11:14:37.2566] Slim::Display::Display::curLines (481) Error: bad lines function: Can't call method "duration" on unblessed reference at /usr/lib/perl5/vendor_perl/Slim/Music/TitleFormatter.pm line 220. [09-07-05 11:14:38.2567] Slim::Display::Display::curLines (481) Error: bad lines function: Can't call method "duration" on unblessed reference at /usr/lib/perl5/vendor_perl/Slim/Music/TitleFormatter.pm line 220. [09-07-05 11:14:39.0345] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Commands::playcontrolCommand]: [Can't call method "duration" on unblessed reference at /usr/lib/perl5/vendor_perl/Slim/Music/TitleFormatter.pm line 220. ]
To provide a little more information, this is running on a Fedora 10 server using the squeezecenter-7.3.3-1.noarch RPM from the squeezecenter yum repo (squeezecenter-repo-1-6.noarch): uname -a: Linux kylepc 2.6.27.25-170.2.72.fc10.x86_64 #1 SMP Sun Jun 21 18:39:34 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux SqueezeCenter version: Version: 7.3.3 - 27044 @ Mon Jun 15 14:48:51 PDT 2009 Pandora Plugin: version: v3.0 id (from install.xml): EAF3A57B-2698-4244-A895-CE1FC6BAB52B The web interface displays the current playing track information fine. I'd be happy to provide any further information needed to duplicate and track down this issue.
Kyle, do you have any 3rd party plugins going? Could you disable them and see if this still happens? Thanks!
The only 3rd party plugin I'm using is WeatherTime (http://code.google.com/p/weathertime/ ). Unfortunately, disabling it did not fix the problem.
For clarity, this works fine when using Pandora from SqueezeNetwork. The problem only exists when using Pandora from SqueezeCenter on my Fedora 10 box.
Kyle: can you try SC 7.3.4 please: http://downloads.slimdevices.com/nightly/?ver=7.3 does that version have the same issue with Pandora
Yes, it still occurs in: Version: 7.3.4 - 27488 @ Sat Jul 18 03:01:26 PDT 2009 Here's the error messages from the squeezecenter log when this occurs: [09-07-18 17:08:45.4148] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Commands::playlistJumpCommand]: [Can't call method "duration" on unblessed reference at /usr/lib/perl5/vendor_perl/Slim/Music/TitleFormatter.pm line 220. ] [09-07-18 17:08:51.4253] Slim::Display::Display::curLines (481) Error: bad lines function: Can't call method "duration" on unblessed reference at /usr/lib/perl5/vendor_perl/Slim/Music/TitleFormatter.pm line 220. [09-07-18 17:08:51.4256] Slim::Display::Graphics::render (108) Error: bad lines function - non hash based display formats are depreciated [09-07-18 17:08:52.4261] Slim::Display::Display::curLines (481) Error: bad lines function: Can't call method "duration" on unblessed reference at /usr/lib/perl5/vendor_perl/Slim/Music/TitleFormatter.pm line 220. [09-07-18 17:08:53.4259] Slim::Display::Display::curLines (481) Error: bad lines function: Can't call method "duration" on unblessed reference at /usr/lib/perl5/vendor_perl/Slim/Music/TitleFormatter.pm line 220. [09-07-18 17:08:54.1352] Slim::Display::Display::curLines (481) Error: bad lines function: Can't call method "duration" on unblessed reference at /usr/lib/perl5/vendor_perl/Slim/Music/TitleFormatter.pm line 220. [09-07-18 17:08:54.1355] Slim::Display::Graphics::render (108) Error: bad lines function - non hash based display formats are depreciated
Kyle, what now playing display format are you using? Is it a custom one or one that was included with SqueezeCenter?
It's not a custom "Now Playing" display format. I'm using "Small Spectrum", but it occurs on all of them as I toggle through using the "Now Playing" button on my remote.
Sorry Kyle, my bad. I meant to ask what Title Format are you using. For example "Title" or "TRACKNUM. TITLE - ARTIST -ALBUM" under Settings, Display, Song Title Format on the player or Settings, Player, Basic Settings on the web interface.
Ahh, in that case I guess I am using my own format: TRACKNUM. TITLE (ARTIST - ALBUM) [DURATION] Is my inclusion of DURATION what's tripping this up?
(In reply to comment #10) > Ahh, in that case I guess I am using my own format: > > TRACKNUM. TITLE (ARTIST - ALBUM) [DURATION] > > Is my inclusion of DURATION what's tripping this up? Yep, adding DURATION to the Title Format causes issues with Pandora. In fact I was not even able to play Pandora when DURATION was added to the Title Format let alone display properly. So the workaround for now would be to remove DURATION from the Title Format until this issue is resolved.
I'm now using a title format without DURATION and "Now Playing" now displays properly. I would like to get DURATION back on my title format since it's nice when playing songs from my library to know how long the song is (instead of only relying on the small progress bar on the first line during playback). Also, this same issue affects Last.fm title display. If DURATION is used in the title format, no "Now Playing" information is shown.
Moving 7.4 bugs to 8.0.