From d77d619b504f4302f3139d592ec50ec48fe9fc6e Mon Sep 17 00:00:00 2001 From: mcarlton00 Date: Sun, 6 Oct 2019 11:23:24 -0400 Subject: [PATCH 1/2] 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) From 6ba4ee8fc66f5ed4aae5c4253dd237902ea19c19 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 8 Oct 2019 14:00:31 -0400 Subject: [PATCH 2/2] Faster join syntax for checking method --- resources/lib/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/monitor.py b/resources/lib/monitor.py index c0f5256c..04a1bf9b 100644 --- a/resources/lib/monitor.py +++ b/resources/lib/monitor.py @@ -66,7 +66,7 @@ class Monitor(xbmc.Monitor): elif sender.startswith('upnextprovider'): LOG.info('Attempting to play the next episode via upnext') - method = '.'.join(method.split('.')[1:]) + method = method.split('.', 1)[1] if method not in ('plugin.video.jellyfin_play_action',): LOG.info('Received invalid upnext method: %s', method)