From c28b43451f071c904c5f9255d6bc94be21e261ac Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 21 Jan 2016 16:34:35 -0600 Subject: [PATCH] Revert useless unicode changes Now that the device name is normalized without special characters. --- resources/lib/downloadutils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/lib/downloadutils.py b/resources/lib/downloadutils.py index e68d1951..1c244e74 100644 --- a/resources/lib/downloadutils.py +++ b/resources/lib/downloadutils.py @@ -189,7 +189,7 @@ class DownloadUtils(): # If user is not authenticated auth = ( 'MediaBrowser Client="Kodi", Device="%s", DeviceId="%s", Version="%s"' - % (deviceName, deviceId.encode('utf-8'), version.encode('utf-8'))) + % (deviceName, deviceId, version)) header = { 'Content-type': 'application/json', @@ -205,8 +205,7 @@ class DownloadUtils(): # Attached to the requests session auth = ( 'MediaBrowser UserId="%s", Client="Kodi", Device="%s", DeviceId="%s", Version="%s"' - % (userId.encode('utf-8'), deviceName, deviceId.encode('utf-8'), - version.encode('utf-8'))) + % (userId, deviceName, deviceId, version)) header = { 'Content-type': 'application/json',