First of all thanks a lot creating this great skin, it looks wonderful
and will keep the Squeezebox environment modern and fresh!

I run into one little glitch though … I have created a plugin for myself
to define virtual library views and to create own browse menus/sub-menus
(following several examples found here in the forums):

There are menus that browse by Artist.  When selecting an Artist, it
shows the Albums where the Artist appears on at least one track.  Now,
when selecting an Album from the result, Material shows all Tracks of
that Album, and not only the Tracks filtered for the specific Artist
(for Compilations that makes a difference).

The standard top-level Artist Menu that comes with Material shows
different (desired) behavior:  It allows to select an Artist, then an
Album, and will return only the Tracks of the Album for selected Artist
(“drill down”).  Indeed, when looking in the browser development
console, it shows that the request includes the artist_id when using
Materials’s own Artist menu, but doesn’t for the menus defined in my
Plugin:

Material's Artists Menu:
> [15:59:19] JSON REQ:
> ["",["tracks",0,25000,"tags:distAC","sort:tracknum","album_id:12177","artist_id:35073","library_id:0"]]
> material.min.js:89:275

My plugin Artists Menu (note: "artist_id:..." is not there):
> [16:04:41] JSON REQ:
> ["",["tracks",0,25000,"tags:distAC","sort:tracknum","album_id:12177","library_id:c0ceb5d4"]]
> material.min.js:89:275
> 

The same Plugin code on a Squeezebox Touch and in the default Web UI
give only Tracks matching the selected Artist – so seems it is related
how Material handles the additional Browse menu nodes defined by the
Plugin.  Is there a way that Material can pass-through a previously
selected artist_id when selecting an Album?  I would appreciate any
hints :-)

Thanks, Andreas.

Here an excerpt from the Plugin code:
> Slim::Menu::BrowseLibrary->registerNode({
> 
type         => 'link',
> id           => 'MYLIBRARIES_TESTARTISTS',
> name         => 'PLUGIN_MYLIBRARIES_TESTARTISTS',
> homeMenuText => 'PLUGIN_MYLIBRARIES_TESTARTISTS',
> params       => { library_id =>
> Slim::Music::VirtualLibraries->getRealId('MYLIBRARIES_UMUSIK') },
> feed         => \&Slim::Menu::BrowseLibrary::_artists,
> icon         => 'html/images/artists.png',
> condition    => \&Slim::Menu::BrowseLibrary::isEnabledNode,
> cache        => 1,
> });


------------------------------------------------------------------------
andy67's Profile: http://forums.slimdevices.com/member.php?userid=70350
View this thread: http://forums.slimdevices.com/showthread.php?t=109624

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to