Normalize device name

Server is unable to display unicode correctly for device names. Luke is
aware of this.
This commit is contained in:
angelblue05 2016-01-21 16:32:30 -06:00
parent 65be0b6262
commit c54108cfa7

View file

@ -45,6 +45,7 @@ class ClientInfo():
if utils.settings('deviceNameOpt') == "false": if utils.settings('deviceNameOpt') == "false":
# Use Kodi's deviceName # Use Kodi's deviceName
deviceName = xbmc.getInfoLabel('System.FriendlyName') deviceName = xbmc.getInfoLabel('System.FriendlyName')
deviceName = utils.normalize_string(deviceName)
else: else:
deviceName = utils.settings('deviceName') deviceName = utils.settings('deviceName')
deviceName = deviceName.replace("\"", "_") deviceName = deviceName.replace("\"", "_")