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
# This class is the interface between the internal default settings and the user.
# The user adjust the settings to his/her likings in Kodi. This class will make
# sure that the addon knows that the user changed a setting.
utils.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录