mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Re-add decode to unicode
Then convert to utf-8, then ascii for the auth header.
This commit is contained in:
parent
af4b3bdd9e
commit
3caa2ae3a7
2 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,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').decode('utf-8')
|
||||||
deviceName = utils.normalize_string(deviceName)
|
|
||||||
else:
|
else:
|
||||||
deviceName = utils.settings('deviceName')
|
deviceName = utils.settings('deviceName')
|
||||||
deviceName = deviceName.replace("\"", "_")
|
deviceName = deviceName.replace("\"", "_")
|
||||||
|
|
|
@ -182,6 +182,7 @@ class DownloadUtils():
|
||||||
clientInfo = self.clientInfo
|
clientInfo = self.clientInfo
|
||||||
|
|
||||||
deviceName = clientInfo.getDeviceName()
|
deviceName = clientInfo.getDeviceName()
|
||||||
|
deviceName = utils.normalize_string(deviceName.encode('utf-8'))
|
||||||
deviceId = clientInfo.getDeviceId()
|
deviceId = clientInfo.getDeviceId()
|
||||||
version = clientInfo.getVersion()
|
version = clientInfo.getVersion()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue