mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-23 05:19:48 +00:00
Merge pull request #899 from oddstr13/pr-hexlify-encode-1
Specify encoding when converting hex-bytestring to string
This commit is contained in:
commit
2aa790c88b
@ -122,7 +122,7 @@ def event(method, data=None, sender=None, hexlify=False):
|
||||
sender = sender or "plugin.video.jellyfin"
|
||||
|
||||
if hexlify:
|
||||
data = str(binascii.hexlify(json.dumps(data).encode()))
|
||||
data = str(binascii.hexlify(json.dumps(data).encode()), "utf-8")
|
||||
|
||||
data = '"[%s]"' % json.dumps(data).replace('"', '\\"')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user