mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +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"
|
||||
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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue