Merge pull request #3 from Uukrull/master

Proper fix for the Shield
pull/1/head
DiMartinoXBMC 2016-01-04 23:00:54 +03:00
commit 71e3cce308
1 changed files with 2 additions and 2 deletions

View File

@ -71,13 +71,13 @@ def get_platform():
} }
if xbmc.getCondVisibility("system.platform.android"): if xbmc.getCondVisibility("system.platform.android"):
ret["os"] = "android" ret["os"] = "android"
if "arm" in os.uname()[4]: if "arm" in os.uname()[4] or "aarch64" in os.uname()[4]:
ret["arch"] = "arm" ret["arch"] = "arm"
elif xbmc.getCondVisibility("system.platform.linux"): elif xbmc.getCondVisibility("system.platform.linux"):
ret["os"] = "linux" ret["os"] = "linux"
uname=os.uname()[4] uname=os.uname()[4]
if "arm" in uname: if "arm" in uname:
if "armv7" in uname or "aarch64" in uname: if "armv7" in uname:
ret["arch"] = "armv7" ret["arch"] = "armv7"
elif "armv6" in uname: elif "armv6" in uname:
ret["arch"] = "armv6" ret["arch"] = "armv6"