mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-14 12:16:12 +00:00
Allow the device name to have unicode characters
This commit is contained in:
parent
d814cf1b4b
commit
5cbc798cad
2 changed files with 9 additions and 6 deletions
|
@ -6,7 +6,8 @@ import json
|
|||
import requests
|
||||
|
||||
from helper.utils import settings
|
||||
from helper import LazyLogger
|
||||
from helper import LazyLogger, get_filesystem_encoding
|
||||
from six import ensure_str
|
||||
|
||||
|
||||
LOG = LazyLogger(__name__)
|
||||
|
@ -374,7 +375,7 @@ class API(object):
|
|||
"Accept-Charset": "UTF-8,*",
|
||||
"Accept-encoding": "gzip",
|
||||
"User-Agent": self.config.data['http.user_agent'] or "%s/%s" % (self.config.data['app.name'], self.config.data['app.version']),
|
||||
"x-emby-authorization": auth
|
||||
"x-emby-authorization": ensure_str(auth, get_filesystem_encoding())
|
||||
}
|
||||
|
||||
def send_request(self, url, path, method="get", timeout=None, headers=None, data=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue