Skip to content

Commit

Permalink
Add support for upnext addon
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarlton00 committed Oct 6, 2019
1 parent 6e06a6f commit d77d619
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions addon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<import addon="xbmc.python" version="2.25.0"/>
<import addon="script.module.requests" version="2.22.0"/>
<import addon="script.module.dateutil" version="2.7.3"/>
<import addon="script.module.addon.signals" version="0.0.1"/>
</requires>
<extension point="xbmc.python.pluginsource"
library="default.py">
Expand Down
4 changes: 3 additions & 1 deletion resources/lib/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ def onNotification(self, sender, method, data):
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)
Expand Down

0 comments on commit d77d619

Please sign in to comment.