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"
elif xbmc.getCondVisibility('system.platform.windows'):
return "Windows"
elif xbmc.getCondVisibility('system.platform.linux'):
return "Linux/RPi"
elif xbmc.getCondVisibility('system.platform.android'):
return "Linux/Android"
elif xbmc.getCondVisibility('system.platform.linux.raspberrypi'):
return "Linux/RPi"
elif xbmc.getCondVisibility('system.platform.linux'):
return "Linux"
else:
return "Unknown"