mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Fix encoding
This commit is contained in:
parent
4a3be4d628
commit
03e8b2ec86
1 changed files with 4 additions and 3 deletions
|
@ -178,13 +178,13 @@ class DownloadUtils(object):
|
|||
def get_header(self, server_id=None, authenticate=True):
|
||||
|
||||
device_name = self.client_info.get_device_name().encode('utf-8')
|
||||
device_id = self.client_info.get_device_id()
|
||||
version = self.client_info.get_version()
|
||||
device_id = self.client_info.get_device_id().encode('utf-8')
|
||||
version = self.client_info.get_version().encode('utf-8')
|
||||
|
||||
if authenticate:
|
||||
|
||||
user = self._get_session_info(server_id)
|
||||
user_id = user['UserId']
|
||||
user_id = user['UserId'].encode('utf-8')
|
||||
token = user['Token']
|
||||
|
||||
auth = (
|
||||
|
@ -209,6 +209,7 @@ class DownloadUtils(object):
|
|||
})
|
||||
return header
|
||||
|
||||
|
||||
def downloadUrl(self, url, postBody=None, action_type="GET", parameters=None,
|
||||
authenticate=True, server_id=None):
|
||||
|
||||
|
|
Loading…
Reference in a new issue