possible to get xbmc version number from plugin?
#1
Is it possible to get the XBMC version from a plugin? The revision information would be even better (so I can check for something that was fixed/modified in revision XXX)
Reply
#2
xbmc_rev = int( xbmc.getInfoLabel( "System.BuildVersion" ).split( " r" )[ -1 ] )
Reply
#3
xbmc.getInfoLabel( "System.BuildVersion" )

see: http://xbmc.sourceforge.net/python-docs/xbmc.html
Reply
#4
excellent! many thanks.
Reply
#5
seemed on my machine the revision had a "M" at the end of it, so the split/int may not work in all cases?

I've done

rev_re = re.compile(' r(\d+)')

xbmc_rev = int(rev_re.search(xbmc.getInfoLabel( "System.BuildVersion" )).group(1))

i guess a reg exp is perhaps overkill, but it seems to work (and it only gets called once)
Reply

Logout Mark Read Team Forum Stats Members Help
possible to get xbmc version number from plugin?0