Skip to content

Commit

Permalink
Specify encoding when converting hex-bytestring to string
Browse files Browse the repository at this point in the history
  • Loading branch information
oddstr13 committed Aug 9, 2024
1 parent 51528e9 commit 859a393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jellyfin_kodi/helper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('"', '\\"')

Expand Down

0 comments on commit 859a393

Please sign in to comment.