diff --git a/resources/lib/objects/tvshows.py b/resources/lib/objects/tvshows.py index f87aa03a..be846f0c 100644 --- a/resources/lib/objects/tvshows.py +++ b/resources/lib/objects/tvshows.py @@ -130,7 +130,6 @@ class TVShows(KodiDb): season_episodes = [] for season in self.server['api'].get_seasons(obj['Id'])['Items']: - self.season(season, obj['ShowId']) if season['SeriesId'] != obj['Id']: obj['SeriesId'] = season['SeriesId'] @@ -140,8 +139,14 @@ class TVShows(KodiDb): except TypeError: self.emby_db.add_reference(*values(obj, QUEM.add_reference_pool_obj)) - season_episodes.append(season['Id']) 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']) else: season_id = self.get_season(*values(obj, QU.get_season_special_obj)) self.artwork.add(obj['Artwork'], season_id, "season")