Skip to content

Commit

Permalink
Merge pull request #899 from oddstr13/pr-hexlify-encode-1
Browse files Browse the repository at this point in the history
Specify encoding when converting hex-bytestring to string
oddstr13 authored Aug 9, 2024
2 parents 5134fb4 + 859a393 commit 2aa790c
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
@@ -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('"', '\\"')

0 comments on commit 2aa790c

Please sign in to comment.