Merge pull request #117 from mcarlton00/upnext-support

Add support for upnext addon
This commit is contained in:
mcarlton00 2019-10-08 14:54:51 -04:00 committed by GitHub
commit 461be055ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -65,9 +65,11 @@ class Monitor(xbmc.Monitor):
data = json.loads(data)[0]
elif sender.startswith('upnextprovider'):
method = method.split('.')[1]
LOG.info('Attempting to play the next episode via upnext')
method = method.split('.', 1)[1]
if method not in ('plugin.video.jellyfin_play_action',):
LOG.info('Received invalid upnext method: %s', method)
return
data = json.loads(data)