Bug 12681 - Custom title format with DURATION breaks Pandora (possibly others)
: Custom title format with DURATION breaks Pandora (possibly others)
Status: NEW
Product: Logitech Media Server
Classification: Unclassified
Component: Pandora
: 7.3.3
: PC Fedora
: -- normal with 1 vote (vote)
: 8.0.0
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-05 11:19 UTC by Kyle K.
Modified: 2010-03-01 02:29 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle K. 2009-07-05 11:19:53 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.
]
Comment 1 Kyle K. 2009-07-06 09:22:19 UTC
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.
Comment 2 Chris Owens 2009-07-06 09:40:04 UTC
Kyle, do you have any 3rd party plugins going?  Could you disable them and see if this still happens?

Thanks!
Comment 3 Kyle K. 2009-07-06 10:10:03 UTC
The only 3rd party plugin I'm using is WeatherTime (http://code.google.com/p/weathertime/ ).  Unfortunately, disabling it did not fix the problem.
Comment 4 Kyle K. 2009-07-18 11:49:17 UTC
For clarity, this works fine when using Pandora from SqueezeNetwork.  The problem only exists when using Pandora from SqueezeCenter on my Fedora 10 box.
Comment 5 James Richardson 2009-07-18 12:02:37 UTC
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
Comment 6 Kyle K. 2009-07-18 17:11:17 UTC
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
Comment 7 Spies Steven 2009-07-20 10:16:33 UTC
Kyle, what now playing display format are you using?  Is it a custom one or one that was included with SqueezeCenter?
Comment 8 Kyle K. 2009-07-20 11:08:47 UTC
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.
Comment 9 Spies Steven 2009-07-20 11:15:52 UTC
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.
Comment 10 Kyle K. 2009-07-20 12:02:38 UTC
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?
Comment 11 Spies Steven 2009-07-20 14:19:31 UTC
(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.
Comment 12 Kyle K. 2009-07-27 00:36:10 UTC
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.
Comment 13 Andy Grundman 2009-07-29 14:59:31 UTC
Moving 7.4 bugs to 8.0.