Fix season artwork

This commit is contained in:
angelblue05 2018-09-15 22:16:19 -05:00
commit 89ff748b9d
2 changed files with 7 additions and 7 deletions

View file

@ -140,13 +140,13 @@ class TVShows(KodiDb):
self.emby_db.add_reference(*values(obj, QUEM.add_reference_pool_obj))
LOG.info("POOL %s [%s/%s]", obj['Title'], obj['Id'], obj['SeriesId'])
try:
self.emby_db.get_item_by_id(season['Id'])[0]
except TypeError:
self.season(season, obj['ShowId'])
season_episodes.append(season['Id'])
try:
self.emby_db.get_item_by_id(season['Id'])[0]
except TypeError:
self.season(season, obj['ShowId'])
season_episodes.append(season['Id'])
else:
season_id = self.get_season(*values(obj, QU.get_season_special_obj))
self.artwork.add(obj['Artwork'], season_id, "season")