diff --git a/resources/lib/variables.py b/resources/lib/variables.py index 71c08eae..a8ef0e16 100644 --- a/resources/lib/variables.py +++ b/resources/lib/variables.py @@ -66,6 +66,9 @@ else: PLATFORM = "Unknown" DEVICENAME = try_decode(_ADDON.getSetting('deviceName')) +if not DEVICENAME: + DEVICENAME = try_decode(xbmc.getInfoLabel('System.FriendlyName')) + _ADDON.setSetting('deviceName', DEVICENAME) DEVICENAME = DEVICENAME.replace(":", "") DEVICENAME = DEVICENAME.replace("/", "-") DEVICENAME = DEVICENAME.replace("\\", "-") diff --git a/resources/settings.xml b/resources/settings.xml index 11fa8bea..95c95f31 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -30,7 +30,7 @@ - +