Skip to content

Commit 468512b

Browse files
Functions for getting Kodi & inputstream versions
1 parent 0427d8a commit 468512b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/inputstreamhelper.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ def _cdm_path(self):
3939
addon = xbmcaddon.Addon('inputstream.adaptive')
4040
return xbmc.translatePath(addon.getSetting('DECRYPTERPATH'))
4141

42+
def _kodi_version(self):
43+
version = xbmc.getInfoLabel('System.BuildVersion')
44+
return version.split(' ')[0]
45+
46+
def _inputstream_version(self):
47+
addon = xbmcaddon.Addon(self._inputstream_addon)
48+
return addon.getAddonInfo('version')
49+
4250
def has_widevine_cdm(self):
4351
if xbmc.getCondVisibility('system.platform.android'): # widevine is built in on android
4452
return True

0 commit comments

Comments
 (0)