Kodi Community Forum

Full Version: JSONRPC seems to return a wrong value for 'IsInternetStream'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If I use 'xbmc.getCondVisibility("Player.IsInternetStream")' and it is an internet stream, then it returns '1'.  However, if I use 'xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"XBMC.GetInfoBooleans","params":{"booleans":["IsInternetStream"]}, "id":1}')' it returns false for the same stream.

Code:
2019-07-26 21:38:39.197 T:140536765740800  NOTICE: Streaming Radio Helper : xbmc.executeJSONRPC result - {"id":1,"jsonrpc":"2.0","result":{"IsInternetStream":false}}
2019-07-26 21:38:39.214 T:140536765740800  NOTICE: Streaming Radio Helper : xbmc.getCondVisibility result - 1

Relevant calls :

playing_radio = xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"XBMC.GetInfoBooleans","params":{"booleans":["IsInternetStream"]}, "id":1}')
log("xbmc.executeJSONRPC result - %s" % playing_radio, xbmc.LOGNOTICE)
my_test_result = xbmc.getCondVisibility("player.IsInternetStream")
log("xbmc.getCondVisibility result - %s " % my_test_result, xbmc.LOGNOTICE)