mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Merge pull request #117 from mcarlton00/upnext-support
Add support for upnext addon
This commit is contained in:
commit
461be055ea
2 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
<import addon="xbmc.python" version="2.25.0"/>
|
<import addon="xbmc.python" version="2.25.0"/>
|
||||||
<import addon="script.module.requests" version="2.22.0"/>
|
<import addon="script.module.requests" version="2.22.0"/>
|
||||||
<import addon="script.module.dateutil" version="2.7.3"/>
|
<import addon="script.module.dateutil" version="2.7.3"/>
|
||||||
|
<import addon="script.module.addon.signals" version="0.0.1"/>
|
||||||
</requires>
|
</requires>
|
||||||
<extension point="xbmc.python.pluginsource"
|
<extension point="xbmc.python.pluginsource"
|
||||||
library="default.py">
|
library="default.py">
|
||||||
|
|
|
@ -65,9 +65,11 @@ class Monitor(xbmc.Monitor):
|
||||||
data = json.loads(data)[0]
|
data = json.loads(data)[0]
|
||||||
|
|
||||||
elif sender.startswith('upnextprovider'):
|
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',):
|
if method not in ('plugin.video.jellyfin_play_action',):
|
||||||
|
LOG.info('Received invalid upnext method: %s', method)
|
||||||
return
|
return
|
||||||
|
|
||||||
data = json.loads(data)
|
data = json.loads(data)
|
||||||
|
|
Loading…
Reference in a new issue