jwmelvin wrote: > The CLI seems to return inconsistent results for radios, making parsing > difficult. For example, sending "radios 0 10" returns: > > > Code: -------------------- > > radios 0 10 sort%3Aweight count%3A11 name%3AMy%20Presets cmd%3Apresets weight%3A5 type%3Axmlbrowser icon%3A%2Fplugins%2FRadioTime%2Fhtml%2Fimages%2Fradiopresets.png icon%3Ahttp%3A%2F%2Fwww.mysqueezebox.com%2Fstatic%2Fimages%2Ficons%2Fpicks.png type%3Axmlbrowser name%3AStaff%20Picks cmd%3Apicks weight%3A10 name%3ALocal cmd%3Alocal weight%3A20 type%3Axmlbrowser icon%3A%2Fplugins%2FRadioTime%2Fhtml%2Fimages%2Fradiolocal.png weight%3A30 cmd%3Amusic name%3AMusic icon%3A%2Fplugins%2FRadioTime%2Fhtml%2Fimages%2Fradiomusic.png type%3Axmlbrowser type%3Axmlbrowser icon%3A%2Fplugins%2FRadioTime%2Fhtml%2Fimages%2Fradiosports.png name%3ASports weight%3A40 cmd%3Asports cmd%3Anews weight%3A45 name%3ANews type%3Axmlbrowser icon%3A%2Fplugins%2FRadioTime%2Fhtml%2Fimages%2Fradionews.png type%3Axmlbrowser icon%3A%2Fplugins%2FRadioTime%2Fhtml%2Fimages%2Fradiotalk.png weight%3A50 cmd%3Atalk name%3ATalk icon%3A%2Fplugins%2FRadioTime%2Fhtml%2Fimages%2Fradioworld.png type%3Axmlbrowser name%3A By%20Language weight%3A56 cmd%3Alanguage cmd%3Aworld weight%3A60 name%3AWorld icon%3A%2Fplugins%2FRadioTime%2Fhtml%2Fimages%2Fradioworld.png type%3Axmlbrowser icon%3A%2Fplugins%2FRadioTime%2Fhtml%2Fimages%2Fpodcasts.png type%3Axmlbrowser cmd%3Apodcast weight%3A70 name%3APodcasts -------------------- > > > > As you can see, the sequence of each item returned is not consistent. > Am I missing or misunderstanding something? Thanks for any ideas. > > Here's a version with percent encoding removed and linebreaks for > spaces: > > Code: -------------------- > > name:My Presets > weight:5 > cmd:presets > type:xmlbrowser > icon:/plugins/RadioTime/html/images/radiopresets.png > icon:http://www.mysqueezebox.com/static/images/icons/picks.png > type:xmlbrowser > weight:10 > cmd:picks > name:Staff Picks > cmd:local > weight:20 > name:Local > type:xmlbrowser > icon:/plugins/RadioTime/html/images/radiolocal.png > icon:/plugins/RadioTime/html/images/radiomusic.png > type:xmlbrowser > name:Music > cmd:music > weight:30 > icon:/plugins/RadioTime/html/images/radiosports.png > type:xmlbrowser > name:Sports > cmd:sports > weight:40 > name:News > cmd:news > weight:45 > type:xmlbrowser > icon:/plugins/RadioTime/html/images/radionews.png > name:Talk > weight:50 > cmd:talk > icon:/plugins/RadioTime/html/images/radiotalk.png > type:xmlbrowser > type:xmlbrowser > icon:/plugins/RadioTime/html/images/radioworld.png > name:By Language > weight:56 > cmd:language > weight:60 > cmd:world > name:World > type:xmlbrowser > icon:/plugins/RadioTime/html/images/radioworld.png > cmd:podcast > weight:70 > name:Podcasts > icon:/plugins/RadioTime/html/images/podcasts.png > type:xmlbrowser > -------------------- > > > > Setup info: > > Code: -------------------- > > Logitech Media Server Version: 7.9.0 - 1418894490 @ Tue Dec 30 04:05:08 UTC 2014 > Hostname: rocco > Server IP Address: 192.168.1.75 > Server HTTP Port Number: 9000 > Operating system: Debian - EN - utf8 > Platform Architecture: x86_64-linux > Perl Version: 5.20.1 - x86_64-linux-gnu-thread-multi > Audio::Scan: 0.95 > Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1) > Total Players Recognized: 3 -------------------- > >
if you are using Perl 5.18 - could it be the change in hash randomization - try using the environment variable in this post ( http://forums.slimdevices.com/showthread.php?101097-Vortexbox-Beta-2-3-CLI-amp-JSON-problems&p=778797&viewfull=1#post778797 ) and see if it works for you. ------------------------------------------------------------------------ bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=102806 _______________________________________________ beta mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/beta
