From e2a117ea979c6fb25f554a1e459a60f2f1e9d37e Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 1 Mar 2016 12:53:26 -0600 Subject: [PATCH] Allow virtual season artwork --- resources/lib/itemtypes.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index 3a8e3123..54b8c64d 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -1206,10 +1206,6 @@ class TVShows(Items): kodi_db = self.kodi_db artwork = self.artwork - if item['LocationType'] == "Virtual": - self.logMsg("Skipping virtual season.") - return - seasonnum = item.get('IndexNumber', 1) itemid = item['Id'] @@ -1224,10 +1220,13 @@ class TVShows(Items): show = self.emby.getItem(seriesId) self.add_update(show) return - + 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 artwork.addArtwork(artwork.getAllArtwork(item), seasonid, "season", kodicursor)