PasTim wrote: > The samplerate and samplesize fields exist in the standard LMS database, > so you don't need to use custom scan to get at them. You do, however, > probably need to exercise some SQL skills using Custom Browse to make > use of them. > > I have a menu, created in the Custom Browse directory, which allows > selection of albums, and hence tracks, by both (in form 16/44100 etc). > I'm not too good at such things so this is inelegant and probably over > complicated, but it does work. The LMS database tables used are > 'albums' and 'tracks'. The fields/columns used in 'tracks' are > 'samplerate' and 'samplesize', which LMS itself populates from your > music files. > > Save this xml in your custom browse configuration directory under a > suitable name (eg samplerates.cb.xml) and in custom browse refresh the > menus (or just restart LMS). > > If you want to take such things further you need some understanding of > SQL, of SQLite3(the database manager use), of LMS's own database > structure (see > http://wiki.slimdevices.com/index.php/SlimServerDatabaseStructure but > note this may be rather out of date), and of custom browse menus (see > http://wiki.slimdevices.com/index.php/Custom_Browse#Available_menu_types). > If you prefer to use bitrates rather than samplesize/rate, see > http://wiki.erland.isaksson.info/index.php/Setup_new_browse_menus. > > Good luck! >
Hi PasTim, thanks a lot for this tip and code. I was too stupid to see that the Tags are already therei. And in Erlands Custom Browse Plugin "bitrates" and "Bitdepths" are already available as pre-definded menu item. Adding it and it works fine. And your "sample rates" code is working well too. My Qnap has enaugh CPU power so i will not try to optimze the code. You made my day! Reinhold ------------------------------------------------------------------------ dlohnier's Profile: http://forums.slimdevices.com/member.php?userid=65202 View this thread: http://forums.slimdevices.com/showthread.php?t=49483 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
