Improve logging for seasons

This commit is contained in:
croneter 2018-12-29 15:15:56 +01:00
parent 6aa1a09b56
commit 769f093492

View file

@ -281,7 +281,6 @@ class Season(TvShowMixin, ItemBase):
""" """
api = API(xml) api = API(xml)
plex_id = api.plex_id() plex_id = api.plex_id()
LOG.info('Adding season with plex_id %s', plex_id)
if not plex_id: if not plex_id:
LOG.error('Error getting plex_id for season, skipping: %s', LOG.error('Error getting plex_id for season, skipping: %s',
xml.attrib) xml.attrib)
@ -312,11 +311,13 @@ class Season(TvShowMixin, ItemBase):
return return
parent_id = show['kodi_id'] parent_id = show['kodi_id']
if update_item: if update_item:
LOG.info('UPDATE season plex_id %s - %s', plex_id, api.title())
kodi_id = season['kodi_id'] kodi_id = season['kodi_id']
self.kodidb.modify_artwork(api.artwork(), self.kodidb.modify_artwork(api.artwork(),
kodi_id, kodi_id,
v.KODI_TYPE_SEASON) v.KODI_TYPE_SEASON)
else: else:
LOG.info('ADD season plex_id %s - %s', plex_id, api.title())
kodi_id = self.kodidb.add_season(parent_id, api.season_number()) kodi_id = self.kodidb.add_season(parent_id, api.season_number())
self.kodidb.add_artwork(api.artwork(), self.kodidb.add_artwork(api.artwork(),
kodi_id, kodi_id,