Re: The "favourites_url" not available to controllers where "favourites_type" is 'link'
expectingtofly <expectingtofly.a7945b-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
Just to close this thread off, in case anyone finds it through a
search.
The solution (as provided by @philippe_44 , thank you) is to add a key
of '{playlist}' to the menu item containing the url that can be
favourite. This can be added to any menu type including non-playable
ones .
e.g.
Code:
--------------------
{ name => $title,
type => 'link',
image => $image,
url => \&someOperationOrOther,
favorites_url => $favouritesUrl,
favorites_type => 'link',
playlist => $favouritesUrl,
}
--------------------
This ensures that 1. LMS will expose the favourite url information even
when the menu is not playable item (ie not type 'audio' or 'playlist'),
this enables Material to offer the favourite option. and 2. Jive type
controllers will also offer the option to favourite on long press.
Stuart McLean
EXPECTINGTOFLY PLUGINS :
- *BBC Sounds* :
https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin
- *Virgin Radio (UK)* :
https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin
- *Times Radio* :
https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN
- *Global Player (UK)* :
https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin
For BBC Sounds help see the 'BBC Sounds Wiki'
(https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki).
------------------------------------------------------------------------
expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263
View this thread: http://forums.slimdevices.com/showthread.php?t=115012