mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Normalize device name
Server is unable to display unicode correctly for device names. Luke is aware of this.
This commit is contained in:
parent
65be0b6262
commit
c54108cfa7
1 changed files with 1 additions and 0 deletions
|
@ -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("\"", "_")
|
||||||
|
|
Loading…
Reference in a new issue