Bug 11948 - Add album to library from Rhapsody Direct munges favorites
: Add album to library from Rhapsody Direct munges favorites
Status: NEW
Product: Logitech Media Server
Classification: Unclassified
Component: Rhapsody Direct
: 7.3.3
: PC Windows XP
: -- normal (vote)
: Future
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-02 06:31 UTC by Matt Richards
Modified: 2009-07-27 09:25 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Richards 2009-05-02 06:31:58 UTC
SqueezeCenter Version: 7.3.3 - 25911 @ Sat Apr 11 04:07:38 PDT 2009

To reproduce:

Search Rhapsody Direct by album for "Elizabethan".

The first return is "The Elizabethan Collar".  (Note -- if you select the heart icon to the right of that album at this point, the add-to-favorites works correctly.)

Select that album by clicking on "The Elizabethan Collar".

Menu of tracks is displayed along with "All Songs" and "Add album to library".

Click the heart to the right of "Add album to library".

You will now have an entry in your Favorites entitled "Add album to library".  It will have one track entitled "Album added to library".


Also and for what it's worth, the heart to the right of "Add album to library" has hover text that says "Add to favorites".  I don't know whether these are the same function but I suspect they are not; if not there is some confusion there.
Comment 1 James Richardson 2009-05-02 07:23:54 UTC
Michael: Should we remove the 'favorites' icon from that menu?
Comment 2 Michael Herger 2009-05-04 00:19:36 UTC
Andy - do you have an idea for this?
Comment 3 Andy Grundman 2009-05-04 04:47:21 UTC
I think the idea was you could add any XMLBrowser menu item to your favorites, so I don't think there's a bug here.
Comment 4 Matt Richards 2009-05-04 08:30:19 UTC
I originally said: "You will now have an entry in your Favorites entitled 'Add album to library'.  It will have one track entitled 'Album added to library' ."

Maybe I'm missing something, but that certainly seems like a bug to me.  If it's not a bug (because the "menu item" is correctly being added), it's certainly a usability horror.
Comment 5 Andy Grundman 2009-05-04 08:34:10 UTC
There's no way for the XMLBrowser menu to know what 'type' of menu "Add album to library" actually is.  Originally I believe we had just type=audio or type=playlist items with favorite icons, but it was changed with the use case of adding a menu such as "Most Popular" Staff Picks to your favorites, or your favorite city from the radio directory.
Comment 6 Adrian Smith 2009-05-04 09:25:32 UTC
This was originally there so you you could bookmark levels of the menu hierachy.  It was used by AlienBBC and other parsing code to allow menu levels to be bookmarked in favorites.  In this case I think they will have no type.

Is there somethign special about the "Add album to libary" entry?  Can we selectively add the favorite icon based on this.  We could easily add a new hash key of nofavs or something?

In S:W:XMLBrowser somewhere around line 661:
		for my $item (@items) {
			if ($item->{'url'} && !defined $item->{'favorites'}) {
				$item->{'favorites'} = $favs->hasUrl( $item->{'play'} || $item->{'url'} ) ? 2 : 1;
			}
		}

We should avoid setting $item->{'favorites'} for this specific case.  Can we identify what makes it special?
Comment 7 Andy Grundman 2009-05-04 10:28:27 UTC
It returns a confirmation message instead of a sub-menu, but there is nothing to indicate this.  I don't want to hardcode a list of 'bad' menus though.  We'd have to add yet another attribute to indicate a menu that should be blocked from favorites.
Comment 8 Adrian Smith 2009-05-04 11:53:39 UTC
Well at present the code assumes anything containing a url can be bookmarked.  I think this is resonable?  If there is a url as well as the message then it can currently be bookmarked.
Comment 9 Chris Owens 2009-07-27 09:25:24 UTC
We'll get back to it.