Allow virtual season artwork

This commit is contained in:
angelblue05 2016-03-01 12:53:26 -06:00
parent bd093e6783
commit e2a117ea97

View file

@ -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']
@ -1226,7 +1222,10 @@ class TVShows(Items):
return return
seasonid = kodi_db.addSeason(showid, seasonnum) seasonid = kodi_db.addSeason(showid, seasonnum)
if item['LocationType'] != "Virtual":
# Create the reference in emby table # Create the reference in emby table
self.logMsg("Skipping virtual season.")
emby_db.addReference(itemid, seasonid, "Season", "season", parentid=showid) emby_db.addReference(itemid, seasonid, "Season", "season", parentid=showid)
# Process artwork # Process artwork