Python code:
import xbmc
result = xbmc.executehttpapi('GetSystemInfo(120;121)')
system_info = result.split('<li>')
print "Version = " + system_info[1]
print "Date = " + system_info[2]
or
import xbmc
result = xbmc.executehttpapi('GetSystemInfoByName(system.buildversion;system.builddate)')
system_info = result.split('<li>')
print "Version = " + system_info[1]
print "Date = " + system_info[2]
or even a simpler alternative, suggested by BigBellyBilly:
import xbmc
version = xbmc.getInfoLabel('System.BuildVersion')
date = xbmc.getInfoLabel('System.BuildDate')print "Version = " + version
print "Date = " + date
Result :
Version = 9.11 r26017
Date = Dec 23 2009
References:
No comments :
Post a Comment