mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
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:
parent
b354b802cf
commit
79c841bf32
1 changed files with 6 additions and 4 deletions
|
@ -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'):
|
|
||||||
return "Linux/RPi"
|
|
||||||
elif xbmc.getCondVisibility('system.platform.android'):
|
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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue