Fix PKC not starting up on iOS

This commit is contained in:
croneter 2019-12-10 08:15:10 +01:00
parent d4d7c0f98c
commit ed3301a523

View file

@ -69,7 +69,14 @@ elif xbmc.getCondVisibility('system.platform.android'):
else: else:
DEVICE = "Unknown" DEVICE = "Unknown"
MODEL = platform.release() or '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')) DEVICENAME = try_decode(_ADDON.getSetting('deviceName'))
if not DEVICENAME: if not DEVICENAME: