From dd57dff79f7af9650210e9895f15d59faa508176 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 28 Mar 2020 12:21:52 -0400 Subject: [PATCH] Don't encode strings that don't need it --- jellyfin_kodi/jellyfin/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jellyfin_kodi/jellyfin/api.py b/jellyfin_kodi/jellyfin/api.py index dae02377..49000cb3 100644 --- a/jellyfin_kodi/jellyfin/api.py +++ b/jellyfin_kodi/jellyfin/api.py @@ -355,10 +355,10 @@ class API(object): def get_default_headers(self): auth = "MediaBrowser " - auth += "Client=%s, " % self.config.data['app.name'].encode('utf-8') - auth += "Device=%s, " % self.config.data['app.device_name'].encode('utf-8') - auth += "DeviceId=%s, " % self.config.data['app.device_id'].encode('utf-8') - auth += "Version=%s" % self.config.data['app.version'].encode('utf-8') + auth += "Client=%s, " % self.config.data['app.name'] + auth += "Device=%s, " % self.config.data['app.device_name'] + auth += "DeviceId=%s, " % self.config.data['app.device_id'] + auth += "Version=%s" % self.config.data['app.version'] return { "Accept": "application/json",