Add season fanart
This commit is contained in:
parent
5dd607f6d2
commit
021261617e
2 changed files with 7 additions and 1 deletions
|
@ -412,7 +412,7 @@ class API():
|
||||||
if type == "poster" or type == "tvshow.poster": # Now that the Ids are right, change type to MB3 name
|
if type == "poster" or type == "tvshow.poster": # Now that the Ids are right, change type to MB3 name
|
||||||
type="Primary"
|
type="Primary"
|
||||||
if data.get("Type") == "Season": # For seasons: primary (poster), thumb and banner get season art, rest series art
|
if data.get("Type") == "Season": # For seasons: primary (poster), thumb and banner get season art, rest series art
|
||||||
if type != "Primary" and type != "Primary2" and type != "Primary3" and type != "Primary4" and type != "Thumb" and type != "Banner" and type!="Thumb3":
|
if type != "Primary" and type != "Primary2" and type != "Primary3" and type != "Primary4" and type != "Thumb" and type != "Banner" and type!="Thumb3" and type!="Backdrop":
|
||||||
id = data.get("SeriesId")
|
id = data.get("SeriesId")
|
||||||
getSeriesData = True
|
getSeriesData = True
|
||||||
if data.get("Type") == "Episode": # For episodes: primary (episode thumb) gets episode art, rest series art.
|
if data.get("Type") == "Episode": # For episodes: primary (episode thumb) gets episode art, rest series art.
|
||||||
|
@ -442,6 +442,9 @@ class API():
|
||||||
imageTag = data.get("ParentLogoImageTag")
|
imageTag = data.get("ParentLogoImageTag")
|
||||||
if (data.get("Type") == "Episode" or data.get("Type") == "Season") and type=="Art":
|
if (data.get("Type") == "Episode" or data.get("Type") == "Season") and type=="Art":
|
||||||
imageTag = data.get("ParentArtImageTag")
|
imageTag = data.get("ParentArtImageTag")
|
||||||
|
if (data.get("Type") == "Episode" or data.get("Type") == "Season") and type=="Backdrop":
|
||||||
|
if data.get("BackdropImageTags"):
|
||||||
|
imageTag = data['BackdropImageTags'][0]
|
||||||
if (data.get("Type") == "Episode" and originalType=="Thumb3"):
|
if (data.get("Type") == "Episode" and originalType=="Thumb3"):
|
||||||
imageTag = data.get("SeriesThumbImageTag")
|
imageTag = data.get("SeriesThumbImageTag")
|
||||||
if (data.get("Type") == "Season" and originalType=="Thumb3" and imageTag=="e3ab56fe27d389446754d0fb04910a34"):
|
if (data.get("Type") == "Season" and originalType=="Thumb3" and imageTag=="e3ab56fe27d389446754d0fb04910a34"):
|
||||||
|
|
|
@ -783,6 +783,9 @@ class WriteKodiVideoDB():
|
||||||
|
|
||||||
imageUrl = API().getArtwork(season, "Banner", mediaType = "season")
|
imageUrl = API().getArtwork(season, "Banner", mediaType = "season")
|
||||||
self.addOrUpdateArt(imageUrl, seasonid, "season", "banner", cursor)
|
self.addOrUpdateArt(imageUrl, seasonid, "season", "banner", cursor)
|
||||||
|
|
||||||
|
imageUrl = API().getArtwork(season, "Backdrop", mediaType = "season")
|
||||||
|
self.addOrUpdateArt(imageUrl, seasonid, "season", "fanart", cursor)
|
||||||
|
|
||||||
# All season entry
|
# All season entry
|
||||||
MBitem = ReadEmbyDB().getFullItem(embyTvShowId)
|
MBitem = ReadEmbyDB().getFullItem(embyTvShowId)
|
||||||
|
|
Loading…
Reference in a new issue