added season 0 poster as fallback for tv shows in nfo

This commit is contained in:
Marcel van der Veldt 2015-03-20 01:27:55 +01:00
parent 96833b5ef3
commit 25d83591cd

View file

@ -120,6 +120,7 @@ class CreateFiles():
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"])