mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +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
|
@ -1,4 +1,4 @@
|
|||
version = "171076021"
|
||||
version = "171076022"
|
||||
|
||||
from movies import Movies
|
||||
from musicvideos import MusicVideos
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -109,9 +109,9 @@ class Objects(object):
|
|||
self.mapped_item[key] = obj
|
||||
break
|
||||
|
||||
self.mapped_item['ProviderName'] = self.objects.get('%sProviderName' % mapping_name)
|
||||
if not mapping_name.startswith('Browse') and not mapping_name.startswith('Artwork') and not mapping_name.startswith('UpNext'):
|
||||
|
||||
if not mapping_name.startswith('Browse') and not mapping_name.startswith('Artwork'):
|
||||
self.mapped_item['ProviderName'] = self.objects.get('%sProviderName' % mapping_name)
|
||||
self.mapped_item['Checksum'] = json.dumps(item['UserData'])
|
||||
|
||||
return self.mapped_item
|
||||
|
|
|
@ -343,5 +343,17 @@
|
|||
"PlayCount": "CurrentProgram/UserData/PlayCount",
|
||||
"Runtime": "CurrentProgram/RunTimeTicks",
|
||||
"MediaType": "MediaType"
|
||||
},
|
||||
"UpNext": {
|
||||
"episodeid": "Id",
|
||||
"tvshowid": "SeriesId",
|
||||
"plot": "Overview",
|
||||
"showtitle": "SeriesName",
|
||||
"title": "Name",
|
||||
"playcount": "UserData/PlayCount",
|
||||
"season": "ParentIndexNumber",
|
||||
"episode": "IndexNumber",
|
||||
"rating": "CommunityRating",
|
||||
"firstaired": "ProductionYear"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue