Bug 6091 - Albums/Artists can't be played from the favorites
: Albums/Artists can't be played from the favorites
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Player UI
: 7.0
: PC Debian Linux
: P2 normal (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-08 00:48 UTC by Justin Fletcher
Modified: 2007-11-15 08:45 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
check for playable objects which don't have a content_type set (818 bytes, patch)
2007-11-14 10:19 UTC, Michael Herger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Fletcher 2007-11-08 00:48:21 UTC
I've migrated this from a forum post because nobody has replied one way or another after a few days, and I still cannot seem to get the favourites to work...

I'm not sure if I've broken something with my changes for bug#112, so maybe someone else can tell me... I've been using the svn versions for quite a while and can't seem to get favourites to work.

Here's the sequence I'm using...

1/ Press browse on the remote.
2/ Locate the album I want - first find The Mission, select, choose The First Chapter.
3/ Press and hold Favourites until the item is added.
4/ Press Favourites to display the menu.
5/ See 'The First Chapter' listed.
6/ Press Play.
7/ Observe the squeezebox showing:

Playlist empty:
db:album.titlesearch=FIRST%20CHAPTER

And then not doing anything.

Notice that the URL is both incomplete (it doesn't include the album) and doesn't work - because it's not playing anything.

8/ Repeat this sequence with the artist, ie on The Mission add to the favourites,
9/ Press Favourites to go to the menu
10/ Press play over 'The Mission'.
11/ Squeezebox shows:

Playlist emtpy:
db:contributor.namesearch=MISSION

12/ Again repeat sequence, but now go to the first track on The First Chapter (Like a hurricane).
13/ Press and hold Favourites to add it.
14/ Press Favourites to go to the menu.
15/ Locate Like a hurricane.
16/ Press play.
17/ Be astounded that that actually plays :-)



So... is this just me or is Favourites not working ? I've never really used it before and I don't know if I've broken it myself - are you meant to be able to favourite artist and albums in this way ?

All tests done on svn 14429.


Flagged as Major because a significant button on the remote control appears to not function correctly.
Comment 1 Michael Herger 2007-11-13 05:20:23 UTC
Justin - we've add some fixes to the Favorites late last week (change 14585). Could you please give it another try? I can't reproduce the behaviour you're describing.
Comment 2 Justin Fletcher 2007-11-13 11:03:00 UTC
Just updated to the latest svn 14670 and it's completely repeatable for me.

I'm now going to remove my patch for bug #112 and see if it is repeatable with a bog-standard 14670.
Comment 3 Justin Fletcher 2007-11-13 11:05:56 UTC
Repeatable with an unmodified 14670 squeezecenter.
Comment 4 Justin Fletcher 2007-11-13 11:15:35 UTC
Repeated again with a few different options; what additional information would you like me to provide ?

I can enable the debug, but I'm not sure exactly which debug is useful :-)
Comment 5 Justin Fletcher 2007-11-13 11:22:19 UTC
On the principle that it can't hurt, here's the log output from setting the Favorites debugging to 'Debug' and then doing steps 1 through 3 - these should be sufficient because the debug tells me that it's selecting by an album name, which is wrong...

[19:18:45.1311] Slim::Plugin::Favorites::OpmlFavorites::add (151) url: db:album.titlesearch=FIRST%20CHAPTER title: The First Chapter type:  parser:
[19:18:45.1336] Slim::Plugin::Favorites::Opml::save (116) OPML saved to file tempfile: /music/sserver/Playlists/HFI4yooD3Y.opml
[19:18:45.1342] Slim::Plugin::Favorites::Opml::save (125) Renamed /music/sserver/Playlists/HFI4yooD3Y.opml to /music/sserver/Playlists/favorites.opml
[19:18:45.1314] Slim::Plugin::Favorites::OpmlFavorites::add (151) url: db:album.titlesearch=FIRST%20CHAPTER title: The First Chapter type:  parser:
[19:18:45.1338] Slim::Plugin::Favorites::Opml::save (116) OPML saved to file tempfile: /music/sserver/Playlists/HFI4yooD3Y.opml
[19:18:45.1343] Slim::Plugin::Favorites::Opml::save (125) Renamed /music/sserver/Playlists/HFI4yooD3Y.opml to /music/sserver/Playlists/favorites.opml
Comment 6 Michael Herger 2007-11-14 08:41:01 UTC
I still can't reproduce.

"2/ Locate the album I want - first find The Mission, select, choose The First Chapter." - does this mean you go the track "1st chapter" of the album "The Mission"? You want to add a track to the favorites? Can you reproduce this with any song?

The debug flag would be "favorites"
Comment 7 Justin Fletcher 2007-11-14 09:09:52 UTC
Ah; it's possible I should have selected another artist and album combination as this was unclear.

The artist is 'The Mission'
The album is 'The First Chapter'

Go to My Music.
Select Artists.
Select Genesis (the artist).
Move to Lamb Lies Down On Broadway (the album.
Press and hold Favourites over Lamb Lies Down.

I want to add the /album/ to the favourites. This doesn't work; the URL that's added is a db: url which selects the album and... doesn't work when you try to play it.

Similarly...

Go to My Music.
Select Artists.
Move to Genesis (the artists).
Press and hold Favourites over Lamb Lies Down.
Comment 8 Justin Fletcher 2007-11-14 09:11:16 UTC
(In reply to comment #7)
> Similarly...
> 
> Go to My Music.
> Select Artists.
> Move to Genesis (the artists).
> Press and hold Favourites over Lamb Lies Down.

I /meant/...

Press and hold Favourites over Genesis.

This is trying to make Genesis a Favourite, but again does not work properly.

I'll repeat this with debug on the actual player when I get home after work.


Comment 9 Michael Herger 2007-11-14 09:21:08 UTC
Ah, at last... The Lamb, that did it. I think I missed one of your steps. Now I see what you mean. I've changed the summary accordingly. Also I doubt it's a major issue: it's rather a feature not implemented yet. Adding albums/artists to the favorites imho has never been implemented.

I'll still investigate why it's not working.
Comment 10 Michael Herger 2007-11-14 10:19:29 UTC
Created attachment 2411 [details]
check for playable objects which don't have a content_type set

Could you please give this a try?
Comment 11 Michael Herger 2007-11-14 10:21:02 UTC
Andy - I've got a patch for this bug which seems to be working. But I'm not sure it's the right way to solve the issue. The root cause seems to be that albums/artists don't have a content_type defined. Thus they fail the test. But is adding them in condition the right solution?
Comment 12 Justin Fletcher 2007-11-14 12:00:00 UTC
Applying this patch to svn 14713 allows the albums favourited in this way to work.
And allows the artists to be favourited as well.

So I'm pretty happy with that. Sorry that my original report was not descriptive enough for you to reproduce initially.

However, there's a separate and distinct bug in that although the favourite plays, it isn't being added properly. Should I create a separate bug for this ?

The separate problem is that the album added is not unique.
For example, if I go to Artists->Blondie and add 'Greatest Hits' to the favourites, the URL that's added is 'db:album.titlesearch=GREATEST%20HITS' which isn't accurate enough - and if I play it from the favourites menu, I get Aerosmith's Greatest Hits playing.
Comment 13 Michael Herger 2007-11-15 08:45:29 UTC
Change 14741 - we'll have to handle the "Greatest hits problem differently"