mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
added season 0 poster as fallback for tv shows in nfo
This commit is contained in:
parent
96833b5ef3
commit
25d83591cd
1 changed files with 6 additions and 5 deletions
|
@ -115,11 +115,12 @@ class CreateFiles():
|
||||||
SubElement(root, "thumb").text = API().getArtwork(item, "Primary")
|
SubElement(root, "thumb").text = API().getArtwork(item, "Primary")
|
||||||
|
|
||||||
if item_type == 'Series':
|
if item_type == 'Series':
|
||||||
seasonData = ReadEmbyDB().getTVShowSeasons(item["Id"])
|
seasonData = ReadEmbyDB().getTVShowSeasons(item["Id"])
|
||||||
if seasonData != None:
|
if seasonData != None:
|
||||||
for season in seasonData:
|
for season in seasonData:
|
||||||
if season.has_key("IndexNumber"):
|
if season.has_key("IndexNumber"):
|
||||||
SubElement(root, "thumb",{"type":"season","season":str(season["IndexNumber"])}).text = API().getArtwork(season, "Primary")
|
SubElement(root, "thumb",{"type":"season","season":str(season["IndexNumber"])}).text = API().getArtwork(season, "Primary")
|
||||||
|
SubElement(root, "thumb",{"type":"season","season":"0")}).text = API().getArtwork(item, "Primary")
|
||||||
|
|
||||||
SubElement(root, "fanart").text = API().getArtwork(item, "Backdrop")
|
SubElement(root, "fanart").text = API().getArtwork(item, "Backdrop")
|
||||||
SubElement(root, "title").text = utils.convertEncoding(item["Name"])
|
SubElement(root, "title").text = utils.convertEncoding(item["Name"])
|
||||||
|
|
Loading…
Reference in a new issue