mherger wrote: 
> Just define the library_id here for every menu item (using the same 
> ->getRealId() call for the individual libraries)

I've tried many different variations: the *library_id getRealId call*
with and without -params-, -inside and outside- the passthrough block,
with and without -changing the searchTags- value, with and without the
-$pt-...
This is just the code I used last:
Code:
--------------------
                Slim::Menu::BrowseLibrary->registerNode({
  type         => 'link',
  name         => 'MENUGROUP',
  feed         => sub {
        my ($client, $cb, $args, $pt) = @_;
        my @items = ();
        push @items,{
                type => 'link',
                name => string('AAA_SEL_ALBUMS'),
                url => \&Slim::Menu::BrowseLibrary::_albums,
                icon => 'html/images/albums.png',
                                        id   => 
string('myMusicAlbums_AAA_Sel_TracksByAlbum'),
                # params => { library_id => 
Slim::Music::VirtualLibraries->getRealId('AAA_SEL') },
                passthrough => [{ 
                        # params => { library_id => 
Slim::Music::VirtualLibraries->getRealId('AAA_SEL') },
                        library_id => { 
Slim::Music::VirtualLibraries->getRealId('AAA_SEL') },
                        searchTags => [
                                'library_id:'.{ 
Slim::Music::VirtualLibraries->getRealId('AAA_SEL') }
                        ],
                }],
        };
                                                        $cb->({
                                                                items => 
\@items,
                                                        });
  },
  icon => 'html/images/musicfolder.png',
  jiveIcon => 'html/images/musicfolder.png',
  id           => 'MyTopLevelMenu',
  weight       => 600,
  cache        => 1,
  });
--------------------


When I don't end up with a syntax error,  I get *all* the albums of my
*complete* library when it should be just the albums of the virtual
library AAA. Bit frustrating because I feel I'm so close.

So if you could let me know -where exactly- (inside/outside passthrough
block) and -in what form- (with/without -params-, need to change the
searchTag as well...) to place the getRealId call, I would be so glad.
I'm really determined to wrap this thing up and start using this
plugin.
Thank you so much for your help.


------------------------------------------------------------------------
afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306
View this thread: http://forums.slimdevices.com/showthread.php?t=109334

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

Reply via email to