diff --git a/resources/lib/CreateFiles.py b/resources/lib/CreateFiles.py index ef2a266b..45a2c34e 100644 --- a/resources/lib/CreateFiles.py +++ b/resources/lib/CreateFiles.py @@ -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"]) diff --git a/resources/lib/WriteKodiDB.py b/resources/lib/WriteKodiDB.py index 1fb2de78..75e6a78c 100644 --- a/resources/lib/WriteKodiDB.py +++ b/resources/lib/WriteKodiDB.py @@ -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