mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
fixes for season artwork
This commit is contained in:
parent
a68c2cc796
commit
acbf9ee258
2 changed files with 17 additions and 5 deletions
|
@ -120,11 +120,14 @@ class CreateFiles():
|
|||
for season in seasonData:
|
||||
if season.has_key("IndexNumber"):
|
||||
seasonart = API().getArtwork(season, "Primary")
|
||||
if seasonart == None:
|
||||
seasonart = API().getArtwork(item, "Primary")
|
||||
SubElement(root, "thumb",{"type":"season","season":str(season["IndexNumber"])}).text = seasonart
|
||||
SubElement(root, "thumb",{"type":"season","season":"0"}).text = API().getArtwork(item, "Primary")
|
||||
|
||||
if seasonart != None:
|
||||
SubElement(root, "thumb",{"type":"season","aspect":"poster","season":str(season["IndexNumber"])}).text = seasonart
|
||||
seasonart2 = API().getArtwork(season, "Banner")
|
||||
if seasonart2 != None:
|
||||
SubElement(root, "thumb",{"type":"season","aspect":"banner","season":str(season["IndexNumber"])}).text = seasonart2
|
||||
seasonart3 = API().getArtwork(season, "Thumb")
|
||||
if seasonart2 != None:
|
||||
SubElement(root, "thumb",{"type":"season","aspect":"landscape","season":str(season["IndexNumber"])}).text = seasonart3
|
||||
SubElement(root, "fanart").text = API().getArtwork(item, "Backdrop")
|
||||
SubElement(root, "title").text = utils.convertEncoding(item["Name"])
|
||||
SubElement(root, "originaltitle").text = utils.convertEncoding(item["Name"])
|
||||
|
|
|
@ -282,6 +282,7 @@ class WriteKodiDB():
|
|||
|
||||
artwork = {}
|
||||
artwork["poster"] = API().getArtwork(MBitem, "Primary")
|
||||
artwork["banner"] = API().getArtwork(MBitem, "Banner")
|
||||
artwork["clearlogo"] = API().getArtwork(MBitem, "Logo")
|
||||
artwork["clearart"] = API().getArtwork(MBitem, "Art")
|
||||
artwork["landscape"] = API().getArtwork(MBitem, "Thumb")
|
||||
|
@ -439,6 +440,14 @@ class WriteKodiDB():
|
|||
path = os.path.join(tvLibrary,id)
|
||||
xbmcvfs.rmdir(path)
|
||||
|
||||
|
||||
def updateSeasonDetails(self,MBitem, KodiItem):
|
||||
#use sqlite to set the season artwork because with NFO it sets the poster as banner
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
def setKodiResumePoint(self, id, resume_seconds, total_seconds, fileType):
|
||||
#use sqlite to set the resume point while json api doesn't support this yet
|
||||
#todo --> submit PR to kodi team to get this added to the jsonrpc api
|
||||
|
|
Loading…
Reference in a new issue