Revert useless unicode changes

Now that the device name is normalized without special characters.
This commit is contained in:
angelblue05 2016-01-21 16:34:35 -06:00
parent c54108cfa7
commit c28b43451f

View file

@ -189,7 +189,7 @@ class DownloadUtils():
# If user is not authenticated # If user is not authenticated
auth = ( auth = (
'MediaBrowser Client="Kodi", Device="%s", DeviceId="%s", Version="%s"' 'MediaBrowser Client="Kodi", Device="%s", DeviceId="%s", Version="%s"'
% (deviceName, deviceId.encode('utf-8'), version.encode('utf-8'))) % (deviceName, deviceId, version))
header = { header = {
'Content-type': 'application/json', 'Content-type': 'application/json',
@ -205,8 +205,7 @@ class DownloadUtils():
# Attached to the requests session # Attached to the requests session
auth = ( auth = (
'MediaBrowser UserId="%s", Client="Kodi", Device="%s", DeviceId="%s", Version="%s"' 'MediaBrowser UserId="%s", Client="Kodi", Device="%s", DeviceId="%s", Version="%s"'
% (userId.encode('utf-8'), deviceName, deviceId.encode('utf-8'), % (userId, deviceName, deviceId, version))
version.encode('utf-8')))
header = { header = {
'Content-type': 'application/json', 'Content-type': 'application/json',