dlohnier wrote: > Hello, > > i am tieing different options adn did a lot of research in the internet > today. But i was not able to resolve it. > I like to use the Custom Scan Plugin from Erland to Show and Sort my > Music based on the Bit With (16 or 24 Bit typical) and the Sample Rate > (44kz, 96kh, 192kz etc.) > I am not really sure what "Tags to scan" i have to add in the settings > sectin of the Custom Scan Plugin. > > In any Software (e.g. Mp3tag, tag&Rename, TagScanner) i am seeting > different files names for this infrmation and i tried them all. > > I found here http://help.mp3tag.de/main_converter.html#ttf > this filed names _bitrate, _samplerate and i tried them with and > without the "_" > > On my Windows PC i can see them in the Explorer as Sample Rate, Sample > Size and i tried this too. > > With the Custom Browse Plugin i generated a Menu entry "Custom Scan > Info", but i can not see this information. > > Maybe someone already know what the real names of the field are. > Or i am doing a stupid mistake in the Custom Scan Plugin Configuration. > > Regards, Reinhold 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! Code: -------------------- <?xml version="1.0" encoding="utf-8"?> <custombrowse> <menu> <menuname>Sample Rates</menuname> <menuorder>69</menuorder> <menu> <id>samplerate</id> <menuname>Samples</menuname> <menutype>sql</menutype> <playtype>none</playtype> <menudata> select concat(tracks.samplesize,tracks.samplerate),concat(tracks.samplesize, '/', tracks.samplerate,'Hz ') from tracks where audio=1 and samplesize > 0 and samplerate > 0 group by samplerate, samplesize order by samplesize desc, samplerate desc </menudata> <menu> <id>album</id> <menuname>Albums</menuname> <itemtype>album</itemtype> <itemformat>album</itemformat> <playtype>sql</playtype> <playdata> select tracks.id, tracks.title from tracks,albums where tracks.audio=1 and tracks.album={album} and tracks.samplesize = substr({samplerate},1,2) and tracks.samplerate = substr({samplerate},3,6) group by tracks.id order by tracks.disc,tracks.tracknum asc,tracks.titlesort asc </playdata> <jivepattern>^(.*)\s\((.*)\)$</jivepattern> <menutype>sql</menutype> <menulinks>alpha</menulinks> <menudata> select albums.id, albums.title, substr(albums.titlesort,1,1) from albums,tracks where tracks.audio=1 and tracks.album=albums.id and tracks.samplesize = substr({samplerate},1,2) and tracks.samplerate = substr({samplerate},3,6) group by albums.id order by albums.titlesort asc </menudata> <menu> <id>track</id> <itemtype>track</itemtype> <itemformat>track</itemformat> <playtype>all</playtype> <menutype>sql</menutype> <menudata> select tracks.id,tracks.title from tracks where tracks.audio=1 and tracks.album={album} and tracks.samplesize = substr({samplerate},1,2) and tracks.samplerate = substr({samplerate},3,6) group by tracks.id order by tracks.disc,tracks.tracknum asc,tracks.titlesort asc </menudata> <menu> <id>trackdetails</id> <menutype>trackdetails</menutype> <menudata>track|0</menudata> </menu> </menu> </menu> </menu> </menu> </custombrowse> -------------------- LMS 7.9 on VortexBox Midi box, Xubuntu 14.04, FLACs 16->24 bit, 44.1->192kbps. LMS plugin UPnP/DLNA Bridge to MF M1 CLiC (to 405/2 amp & ESLs) & Marantz CR603 UPnP renderers. Alternatively Minimserver & Upplay to same & to upmpdcli/mpd PC renderers. Squeezelite to Meridian USB Explorer DAC to PC speakers/headphones. Wireless Xubuntu 15.10 laptop firefox/upplay or Android 'phone with Squeeze-Commander/BubbleUPnP controls LMS/Minimserver. Also a Touch with EDO, plus spare, unused. ------------------------------------------------------------------------ PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642 View this thread: http://forums.slimdevices.com/showthread.php?t=49483 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
