mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Prepare for krypton listitem
This commit is contained in:
parent
984d09bd6b
commit
9d5980d08a
1 changed files with 7 additions and 1 deletions
|
@ -795,6 +795,12 @@ def createListItem(item):
|
||||||
'Playcount': item['playcount']
|
'Playcount': item['playcount']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if "episodeid" in item:
|
||||||
|
# Listitem of episode
|
||||||
|
metadata['mediatype'] = "episode"
|
||||||
|
metadata['dbid'] = item['episodeid']
|
||||||
|
|
||||||
|
# TODO: Review once Krypton is RC - probably no longer needed if there's dbid
|
||||||
if "episode" in item:
|
if "episode" in item:
|
||||||
episode = item['episode']
|
episode = item['episode']
|
||||||
metadata['Episode'] = episode
|
metadata['Episode'] = episode
|
||||||
|
@ -842,7 +848,7 @@ def createListItem(item):
|
||||||
for key, value in item['streamdetails'].iteritems():
|
for key, value in item['streamdetails'].iteritems():
|
||||||
for stream in value:
|
for stream in value:
|
||||||
li.addStreamInfo(key, stream)
|
li.addStreamInfo(key, stream)
|
||||||
|
|
||||||
return li
|
return li
|
||||||
|
|
||||||
##### GET NEXTUP EPISODES FOR TAGNAME #####
|
##### GET NEXTUP EPISODES FOR TAGNAME #####
|
||||||
|
|
Loading…
Reference in a new issue