2015-03-10, 20:45
I think I use xbmc.python (http://mirrors.xbmc.org/docs/python-docs.../xbmc.html)
I used starting with 1.4 for Frodo - starting with 2.0 for Gotham and starting with 2.14 for helix.
I used starting with 1.4 for Frodo - starting with 2.0 for Gotham and starting with 2.14 for helix.
Code:
try:
self._version = tuple(map(int, (xbmc.__version__.split("."))))
except:
self._version = (1, 4) # Frodo
pass
self._name = 'Unknown XBMC System'
if self._version >= (1, 4) or self._version == (2, 0):
self._name = 'Frodo'
pass
if self._version > (2, 0):
self._name = 'Gotham'
pass
if self._version > (2, 14):
self._name = 'Helix'
pass
if self._version > (2, 19):
self._version = 'Isengard'
pass