Bug 9112 - Last.fm settings menu is useless when no account is registered
: Last.fm settings menu is useless when no account is registered
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Plugin
: 7.2
: All All
: P5 enhancement (vote)
: 7.x
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-11 13:57 UTC by Max Spicer
Modified: 2009-09-08 09:20 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Spicer 2008-08-11 13:57:32 UTC
I don't use last.fm, but I presume I need to register an account somewhere in order for it to do anything.  At the moment, I have an entry under Settings for Last.fm Audioscrobbler, but when I select it I just get a single entry saying 'Do not scrobble'.  The radio button besides this is selected and can't be deselected.  All in all, the entire sub-menu item does absolutely nothing.  This is pretty confusing - it would be much better if the Last.fm entry didn't appear at all under Settings unless I'd done whatever I need to do to enable Last.fm, presumably via the web ui.
Comment 1 Blackketter Dean 2008-08-11 16:37:26 UTC
Andy: What do you think?
Comment 2 Andy Grundman 2008-08-11 16:39:02 UTC
Maybe if there's time.
Comment 3 Andy Grundman 2008-08-14 12:16:00 UTC
Triode: Do you have a suggestion on the best way to implement this?
Comment 4 Adrian Smith 2008-08-14 13:39:03 UTC
add a sub condition to the plugin which is only returns true when you want to see it?
Comment 5 Adrian Smith 2008-08-14 14:02:14 UTC
Something like this? (+ whatever is needed for SN)

--- Slim/Plugin/AudioScrobbler/Plugin.pm        (revision 22608)
+++ Slim/Plugin/AudioScrobbler/Plugin.pm        (working copy)
@@ -186,6 +186,10 @@
        } );
 }
 
+sub condition {
+       return ( scalar @{$prefs->get('accounts') || []} );
+}
+
Comment 6 Andy Grundman 2008-08-14 14:13:44 UTC
Ah thanks, I forgot about condition.
Comment 7 Andy Grundman 2008-08-15 08:43:11 UTC
Fixed in change 22651.
Comment 8 James Richardson 2008-08-27 11:19:50 UTC
Verified fixed in
SqueezeCenter 7.2-22900
Comment 9 James Richardson 2008-12-15 12:34:48 UTC
This bug has been fixed in the 7.3.0 release version 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.
Comment 10 Chris Owens 2009-07-31 10:27:05 UTC
Reduce number of active targets for SC