mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Fix nextup
This commit is contained in:
parent
3a79341065
commit
1a1a306831
2 changed files with 5 additions and 5 deletions
|
@ -47,7 +47,7 @@ class Monitor(xbmc.Monitor):
|
||||||
|
|
||||||
def onNotification(self, sender, method, data):
|
def onNotification(self, sender, method, data):
|
||||||
|
|
||||||
if sender.lower() not in ('plugin.video.emby', 'xbmc', 'upnextprovider'):
|
if sender.lower() not in ('plugin.video.emby', 'xbmc', 'upnextprovider.signal'):
|
||||||
return
|
return
|
||||||
|
|
||||||
if sender == 'plugin.video.emby':
|
if sender == 'plugin.video.emby':
|
||||||
|
@ -63,7 +63,7 @@ class Monitor(xbmc.Monitor):
|
||||||
|
|
||||||
data = json.loads(data)[0]
|
data = json.loads(data)[0]
|
||||||
|
|
||||||
elif sender == 'upnextprovider':
|
elif sender.startswith('upnextprovider'):
|
||||||
method = method.split('.')[1]
|
method = method.split('.')[1]
|
||||||
|
|
||||||
if method not in ('plugin.video.emby_play_action'):
|
if method not in ('plugin.video.emby_play_action'):
|
||||||
|
|
|
@ -228,7 +228,7 @@ class Player(xbmc.Player):
|
||||||
item = self.played[current_file]
|
item = self.played[current_file]
|
||||||
objects = Objects()
|
objects = Objects()
|
||||||
|
|
||||||
if item['Type'] != 'Episode':
|
if item['Type'] != 'Episode' or not item.get('CurrentEpisode'):
|
||||||
return
|
return
|
||||||
|
|
||||||
next_items = item['Server']['api'].get_adjacent_episodes(item['CurrentEpisode']['tvshowid'], item['Id'])
|
next_items = item['Server']['api'].get_adjacent_episodes(item['CurrentEpisode']['tvshowid'], item['Id'])
|
||||||
|
@ -262,7 +262,7 @@ class Player(xbmc.Player):
|
||||||
'next_episode': data
|
'next_episode': data
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG.debug("--[ next up ] %s", json.dumps(next_info, indent=4))
|
LOG.info("--[ next up ] %s", next_info)
|
||||||
event("upnext_data", next_info, hexlify=True)
|
event("upnext_data", next_info, hexlify=True)
|
||||||
|
|
||||||
def onPlayBackPaused(self):
|
def onPlayBackPaused(self):
|
||||||
|
|
Loading…
Reference in a new issue