mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +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
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ def event(method, data=None, sender=None, hexlify=False):
|
||||||
sender = sender or "plugin.video.jellyfin"
|
sender = sender or "plugin.video.jellyfin"
|
||||||
|
|
||||||
if hexlify:
|
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('"', '\\"')
|
data = '"[%s]"' % json.dumps(data).replace('"', '\\"')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue