Fix PKC not starting up on iOS
This commit is contained in:
parent
d4d7c0f98c
commit
ed3301a523
1 changed files with 8 additions and 1 deletions
|
@ -69,7 +69,14 @@ elif xbmc.getCondVisibility('system.platform.android'):
|
|||
else:
|
||||
DEVICE = "Unknown"
|
||||
|
||||
try:
|
||||
MODEL = platform.release() or 'Unknown'
|
||||
except IOError:
|
||||
# E.g. iOS
|
||||
# It seems that Kodi doesn't allow python to spawn subprocesses in order to
|
||||
# determine the system name
|
||||
# See https://github.com/psf/requests/issues/4434
|
||||
MODEL = 'Unknown'
|
||||
|
||||
DEVICENAME = try_decode(_ADDON.getSetting('deviceName'))
|
||||
if not DEVICENAME:
|
||||
|
|
Loading…
Reference in a new issue