mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-07-26 00:07:31 +00:00
Krypton update to support upnext
This commit is contained in:
parent
58e02cfbb7
commit
f8bf3b5151
4 changed files with 26 additions and 3 deletions
|
@ -256,6 +256,17 @@ class Actions(object):
|
|||
LOG.info("[ subtitles ] %s", item['PlaybackInfo']['SubtitleUrl'])
|
||||
listitem.setSubtitles([item['PlaybackInfo']['SubtitleUrl']])
|
||||
|
||||
if item['Type'] == 'Episode':
|
||||
|
||||
item['PlaybackInfo']['CurrentEpisode'] = objects.map(item, "UpNext")
|
||||
item['PlaybackInfo']['CurrentEpisode']['art'] = {
|
||||
'tvshow.poster': obj['Artwork'].get('Series.Primary'),
|
||||
'thumb': obj['Artwork'].get('Primary'),
|
||||
'tvshow.fanart': None
|
||||
}
|
||||
if obj['Artwork']['Backdrop']:
|
||||
item['PlaybackInfo']['CurrentEpisode']['art']['tvshow.fanart'] = obj['Artwork']['Backdrop'][0]
|
||||
|
||||
listitem.setContentLookup(False)
|
||||
|
||||
def listitem_video(self, obj, listitem, item, seektime=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue