GerardLardner;530306 Wrote: > > I realise that will require some re-programming of SlimServer as well > as creating the new folders. Has anyone done anything like this? Can > anyone offer any suggestions about how I might do this myself? > You can definitely do this with Multi Library/Custom Browse plugins but I think they will use too much memory in your NAS so they are probably not an option.
The Music Folder browsing code can be found here: - Classic/Boom/Transporter: Slim/Buttons/BrowseTree.pm - web interface: Slim/Web/Pages/BrowseTree.pm - Touch/Radio/Duet/Controller: Slim/Control/Queries.pm (the musicfolderQuery function) Let's assume that the important thing is to make the "Audiobook" folder available on the top level and it doesn't matter if it's also showed inside "Music Folder". If that's acceptable I think you might be able to create a small plugin that creates a top level menu and launch the standard music folder menu with the directory id as parameter. I haven't looked in detail at the code but I think you can feed the web and Classic/Boom/Transporter interfaces with a "hierarchy" parameter and the Touch/Radio/Duet/Controller interface with a "folder_id" parameter to indicate which directory you like to start with. I think the above mentioned parameters are the unique integer numbers in the database, so you will also have to listen for the "rescan done" event to refresh the menu after a rescan since it might change the id. Finally, it's not worth trying to do this unless you know some programming and are prepared to dig a bit in the Squeezebox Server perl code. The above is obviously no official API so it isn't documented and may stop working in next Squeezebox Server version. As funkstar says, the long term solution for this is the new schema, however if you want to wait for that I suspect you might have to wait a while, I'd personally be surprised if it was implemented this year. I suspect Logitech is going to prioritize features needed for the mass market instead of advanced configuration options like the new schema. -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) ------------------------------------------------------------------------ erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=76815 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
