While examining the LMS source code around favorites-handling, I discovered an undocumented legacy feature which allows the entire favorites hierarchy to be retrieved with a *single *API call. :)
When the 'feedMode:1' flag is added to the ['favorites', 'items'] query, a data-structure is returned from the OPML feed which thankfully contains the full nested favorites hierarchy end even references the -parser -if relevant. I've now rewritten MediaServer to use this. Having all names/titles available for fuzzy-matching means that play-by-name -never -has to recurse. Because I can create a proper -item_id- from the hierarchy, all favorites can be played by -item_id- instead of by URL, so any favorite that needs a parser-plugin will play via that plugin automatically. You should notice much snappier favorites handling on large collections. There's a small white-lie in the above in that the contents of your 'on mysqueezebox.com' folder are never included in the first retrieval-pass and have to be deliberately fetched on a second API call. This extra retrieval cause LMS itself to have to talk to the mysb service which introduces some noticeable extra latency. You'll experience a much more fluid usability overall if you discontinue using mysb _for_favorites_ (keep it for other stuff, just kill off the favorites sync) and stay with local folders for favorites. In settings, make sure you select the option as highlighted in the screenshot below. When you then delete the 'on mysqueezebox.com' folder from your favorites it will no longer be recreated upon LMS restart. Once gone, everything will be much snappier. 35730 Enjoy ! +-------------------------------------------------------------------+ |Filename: mysb.png | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=35730| +-------------------------------------------------------------------+ ------------------------------------------------------------------------ philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=111016 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
