def get_kodi_json(method, params):
json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "%s", "params": %s, "id": 1}' % (method, params))
json_query = unicode(json_query, 'utf-8', errors='ignore')
return json.loads(json_query)
评论列表
文章目录