Skip to content

Commit

Permalink
fixed platform error for android
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatito committed Nov 21, 2017
1 parent a1ce6be commit 5f153ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.elementum" name="Elementum" version="0.0.4" provider-name="elgatito">
<addon id="plugin.video.elementum" name="Elementum" version="0.0.5" provider-name="elgatito">
<requires>
<import addon="xbmc.addon" version="16.0.0" />
<import addon="xbmc.python" version="2.24.0" />
Expand Down
7 changes: 6 additions & 1 deletion resources/site-packages/elementum/osarch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ def linux_distribution():
return "N/A"

def dump_version():
try:
p = platform.platform()
except:
p = "Could not detect"

log.info("""Python version: %s
dist: %s
linux_distribution: %s
Expand All @@ -70,7 +75,7 @@ def dump_version():
linux_distribution(),
platform.system(),
platform.machine(),
platform.platform(),
p,
platform.uname(),
platform.version(),
platform.mac_ver(),
Expand Down
2 changes: 1 addition & 1 deletion resources/site-packages/elementum/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def AddonSettings(self, addonId):
return xbmc.executebuiltin("Addon.OpenSettings(%s)" % addonId)

def AddonSettingsOpened(self):
return xbmc.getCondVisibility('Window.IsVisible(10140)') or xbmc.getCondVisibility('Window.IsActive(10140)')
return xbmc.getCondVisibility('Window.IsVisible(10140)') or xbmc.getCondVisibility('Window.IsActive(10140)') or xbmc.getCondVisibility('Window.IsVisible(12002)')

def GetLanguage(self, *args, **kwargs):
return xbmc.getLanguage(*args, **kwargs)
Expand Down

0 comments on commit 5f153ec

Please sign in to comment.