2017-07-10, 20:43
There is any way to know what kodi version is running the addon?
def get_installedversion():
# retrieve current installed version
json_query = xbmc.executeJSONRPC('{ "jsonrpc": "2.0", "method": "Application.GetProperties", "params": {"properties": ["version", "name"]}, "id": 1 }')
json_query = unicode(json_query, 'utf-8', errors='ignore')
json_query = json.loads(json_query)
version_installed = []
if json_query.has_key('result') and json_query['result'].has_key('version'):
version_installed = json_query['result']['version']['major']
return str(version_installed)