Merge pull request #1334 from croneter/fix-nextup

Fix Kodi add-on NextUp not working
This commit is contained in:
croneter 2021-02-09 19:50:51 +01:00 committed by GitHub
commit 47550e9367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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