Re-add decode to unicode

Then convert to utf-8, then ascii for the auth header.
This commit is contained in:
angelblue05 2016-01-21 19:19:25 -06:00
parent af4b3bdd9e
commit 3caa2ae3a7
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -182,6 +182,7 @@ class DownloadUtils():
clientInfo = self.clientInfo
deviceName = clientInfo.getDeviceName()
deviceName = utils.normalize_string(deviceName.encode('utf-8'))
deviceId = clientInfo.getDeviceId()
version = clientInfo.getVersion()