mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Allow virtual season artwork
This commit is contained in:
parent
bd093e6783
commit
e2a117ea97
1 changed files with 6 additions and 7 deletions
|
@ -1206,10 +1206,6 @@ class TVShows(Items):
|
||||||
kodi_db = self.kodi_db
|
kodi_db = self.kodi_db
|
||||||
artwork = self.artwork
|
artwork = self.artwork
|
||||||
|
|
||||||
if item['LocationType'] == "Virtual":
|
|
||||||
self.logMsg("Skipping virtual season.")
|
|
||||||
return
|
|
||||||
|
|
||||||
seasonnum = item.get('IndexNumber', 1)
|
seasonnum = item.get('IndexNumber', 1)
|
||||||
itemid = item['Id']
|
itemid = item['Id']
|
||||||
|
|
||||||
|
@ -1224,10 +1220,13 @@ class TVShows(Items):
|
||||||
show = self.emby.getItem(seriesId)
|
show = self.emby.getItem(seriesId)
|
||||||
self.add_update(show)
|
self.add_update(show)
|
||||||
return
|
return
|
||||||
|
|
||||||
seasonid = kodi_db.addSeason(showid, seasonnum)
|
seasonid = kodi_db.addSeason(showid, seasonnum)
|
||||||
# Create the reference in emby table
|
|
||||||
emby_db.addReference(itemid, seasonid, "Season", "season", parentid=showid)
|
if item['LocationType'] != "Virtual":
|
||||||
|
# Create the reference in emby table
|
||||||
|
self.logMsg("Skipping virtual season.")
|
||||||
|
emby_db.addReference(itemid, seasonid, "Season", "season", parentid=showid)
|
||||||
|
|
||||||
# Process artwork
|
# Process artwork
|
||||||
artwork.addArtwork(artwork.getAllArtwork(item), seasonid, "season", kodicursor)
|
artwork.addArtwork(artwork.getAllArtwork(item), seasonid, "season", kodicursor)
|
||||||
|
|
Loading…
Reference in a new issue