Fix Kodi add-on NextUp not working

This commit is contained in:
croneter 2021-02-09 18:03:17 +01:00
parent f326e49ba7
commit 6719b97d87

View file

@ -584,7 +584,7 @@ def _notify_upnext(item):
info['play_info'] = {'handle': next_api.fullpath(force_addon=True)[0]} info['play_info'] = {'handle': next_api.fullpath(force_addon=True)[0]}
sender = v.ADDON_ID sender = v.ADDON_ID
method = 'upnext_data' method = 'upnext_data'
data = binascii.hexlify(json.dumps(info)) data = binascii.hexlify(json.dumps(info).encode('utf-8'))
data = '\\"[\\"{0}\\"]\\"'.format(data) data = '\\"[\\"{0}\\"]\\"'.format(data)
xbmc.executebuiltin(f'NotifyAll({sender}, {method}, {data})') xbmc.executebuiltin(f'NotifyAll({sender}, {method}, {data})')