Re: [SlimDevices: SqueezeCenter] Mini bug? Remote tag returns 1 or "0"

2017-03-31 Thread elParaguayo

pippin wrote: 
> This is not a mini bug but a huge bug and it runs across all JSON data
> in LMS.
> Just don't ever expect JSON data to be typed correctly, it often isn't.
> If they contain only numbers you will even find text fields being sent
> as integers.
> 
> I understand it's an underlying Perl problem, not a problem with the LMS
> code itself s don't expect it to ever get fixed.
OK - thanks for the warning!



elParaguayo's Profile: http://forums.slimdevices.com/member.php?userid=65009
View this thread: http://forums.slimdevices.com/showthread.php?t=107188

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


[SlimDevices: SqueezeCenter] Mini bug? Remote tag returns 1 or "0"

2017-03-27 Thread elParaguayo

I'm using the JSON interface and have noticed that, when I query the
playlist and request the "remote" tag it either returns an integer 1 or
a string "0". Presumably both should be integers.

Here's an example response:

Code:

 [{u'artist': u'Public Service Broadcasting',
  u'coverart': u'0',
  u'coverid': u'-167396120',
  u'duration': u'442',
  u'id': u'-167396120',
  u'playlist index': 9,
  u'remote': 1,
  u'title': u'Tomorrow'},
  {u'album': u'Hunting High and Low',
  u'artist': u'a-ha',
  u'artwork_track_id': u'59b4de1d',
  u'coverart': u'1',
  u'coverid': u'59b4de1d',
  u'duration': 229.015,
  u'id': 7277,
  u'playlist index': 10,
  u'remote': u'0',
  u'title': u'Take On Me'}]




elParaguayo's Profile: http://forums.slimdevices.com/member.php?userid=65009
View this thread: http://forums.slimdevices.com/showthread.php?t=107188

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter