Skip to content

Commit

Permalink
Merge pull request #276 from mcarlton00/notification-formatting
Browse files Browse the repository at this point in the history
Fix the formatting of the upnext notification
  • Loading branch information
mcarlton00 authored Mar 11, 2023
2 parents 406decc + 18ad8e6 commit be4fe5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ def send_event_notification(method, data=None, hexlify=False):
if hexlify:
# Used exclusively for the upnext plugin
data_str = ensure_text(binascii.hexlify(ensure_binary(data_str)))
data = '["{}"]'.format(data_str)
else:
data = '"[{}]"'.format(data_str.replace('"', '\\"'))

sender = 'plugin.video.jellycon'
data = '"[{}]"'.format(data_str.replace('"', '\\"'))

xbmc.executebuiltin('NotifyAll({}, {}, {})'.format(sender, method, data))

Expand Down

0 comments on commit be4fe5a

Please sign in to comment.