Fix season artwork

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

View file

@ -1,4 +1,4 @@
version = "171076010" version = "171076011"
from movies import Movies from movies import Movies
from musicvideos import MusicVideos from musicvideos import MusicVideos

View file

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