utils.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:script.service.bluray_iso_utils 作者: Wimpie-ccc 项目源码 文件源码
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.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号