Retrieve entire favorites hierarchy without recursion
philchillbill <philchillbill.a7r8db-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
I've been looking in the source of Slim::Control::XMLBrowser.pm to see if I could figure out how to retrieve the entire favorites hierarchy with a single jsonrpc.js call. I gave up because there's too much goinf on for somebody new to looking at the code. ["favorites", "items", 0, 300, "want_url: 1"] will only return the top level favorites and I need to figure out the IDs of the embedded folders and then repeatedly call ["favorites", "items", 0, 300, "item_id:x.y.z", "want_url: 1"] with the folder item_id's to pick up underlying levels. The thing is, the search variant ["favorites", "items", 0, 300, "search:radio", "want_url: 1"] returns all matches regardless of level but it won't take a wildcard for the search, nor will it take a regexp. Any pointers as to where the code could be tweaked to get back all the items with a single call? Or is there a parameter I'm not seeing? The MediaServer skill has to call jsonrpc.js from the cloud and recursion is 'expensive'. ------------------------------------------------------------------------ philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=115122