mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix series pooling
This commit is contained in:
parent
bb933604b0
commit
a9bd8214b0
1 changed files with 7 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue