fix getPlatform (#57)

xbmc.getCondVisibility('system.platform.linux') returns true in all the following cases: android, raspberry pi, and linux. By reordering the if statement this can be fixed.
This commit is contained in:
delphiactual 2016-09-02 00:21:15 -06:00 committed by angelblue05
parent b354b802cf
commit 79c841bf32

View file

@ -62,10 +62,12 @@ class ClientInfo():
return "iOS" return "iOS"
elif xbmc.getCondVisibility('system.platform.windows'): elif xbmc.getCondVisibility('system.platform.windows'):
return "Windows" return "Windows"
elif xbmc.getCondVisibility('system.platform.linux'): elif xbmc.getCondVisibility('system.platform.android'):
return "Linux/RPi"
elif xbmc.getCondVisibility('system.platform.android'):
return "Linux/Android" return "Linux/Android"
elif xbmc.getCondVisibility('system.platform.linux.raspberrypi'):
return "Linux/RPi"
elif xbmc.getCondVisibility('system.platform.linux'):
return "Linux"
else: else:
return "Unknown" return "Unknown"
@ -100,4 +102,4 @@ class ClientInfo():
log.info("DeviceId loaded: %s" % clientId) log.info("DeviceId loaded: %s" % clientId)
window('emby_deviceId', value=clientId) window('emby_deviceId', value=clientId)
return clientId return clientId