*params => { library_id => Slim::Music::VirtualLibraries->getRealId('AAA') },*

No need to define the library_id at this level. The top level menu item doesn't need it, but only the sub-items. Therefore:

        *push @items*,{
                type => 'link',
                name => string('AAA_SEL_ALBUMS'),
                url => \&Slim::Menu::BrowseLibrary::_albums,
                icon => 'html/images/albums.png',
                        *passthrough* => [{
                                *library_id* => $pt->{'*library_id*'},
                                searchTags => [
                                        '*library_id*:'.$pt->{'*library_id*'}
                                ],
                        }],
        };

Just define the library_id here for every menu item (using the same ->getRealId() call for the individual libraries) instead of reading it from the top-level menu.

--

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

Reply via email to