def executeJSON(request):
# =================================================================
# Execute JSON-RPC Command
# Args:
# request: Dictionary with JSON-RPC Commands
# Found code in xbmc-addon-service-watchedlist
# =================================================================
rpccmd = json.dumps(request) # create string from dict
json_query = xbmc.executeJSONRPC(rpccmd)
json_query = unicode(json_query, 'utf-8', errors='ignore')
json_response = json.loads(json_query)
return json_response
评论列表
文章目录