From d77d619b504f4302f3139d592ec50ec48fe9fc6e Mon Sep 17 00:00:00 2001 From: mcarlton00 Date: Sun, 6 Oct 2019 11:23:24 -0400 Subject: [PATCH] Add support for upnext addon --- addon.xml | 1 + resources/lib/monitor.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index 0f8f2e7c..38be1920 100644 --- a/addon.xml +++ b/addon.xml @@ -7,6 +7,7 @@ + diff --git a/resources/lib/monitor.py b/resources/lib/monitor.py index 148b008d..c0f5256c 100644 --- a/resources/lib/monitor.py +++ b/resources/lib/monitor.py @@ -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 = '.'.join(method.split('.')[1:]) if method not in ('plugin.video.jellyfin_play_action',): + LOG.info('Received invalid upnext method: %s', method) return data = json.loads(data)