mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Specify encoding when converting hex-bytestring to string
Fixes im85288/service.upnext#313
This commit is contained in:
parent
51528e95e0
commit
859a393455
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