Skip to content

Commit

Permalink
Merge pull request #10 from matejmosko/patch-1
Browse files Browse the repository at this point in the history
strip System.BuildVersion to true float using re
  • Loading branch information
mx3L authored May 12, 2019
2 parents 07c8227 + 5737736 commit a04513a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/rtvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_streams_from_manifest_url(url):
return result

def is_kodi_leia():
version = xbmc.getInfoLabel('System.BuildVersion').split(' ')[0]
version = re.split("[, \-!?:]+", xbmc.getInfoLabel('System.BuildVersion'))[0]
if (float(version) >= 18):
#chceck if is inputstream.adaptive present
payload = {'jsonrpc': '2.0','id': 1,'method': 'Addons.GetAddonDetails','params': {'addonid': 'inputstream.adaptive','properties': ['enabled']}}
Expand Down

0 comments on commit a04513a

Please sign in to comment.