From 769f093492d7628a8be8d621fce2646275175134 Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 29 Dec 2018 15:15:56 +0100 Subject: [PATCH] Improve logging for seasons --- resources/lib/itemtypes/tvshows.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/itemtypes/tvshows.py b/resources/lib/itemtypes/tvshows.py index 40f2a31b..b3189c96 100644 --- a/resources/lib/itemtypes/tvshows.py +++ b/resources/lib/itemtypes/tvshows.py @@ -281,7 +281,6 @@ class Season(TvShowMixin, ItemBase): """ api = API(xml) plex_id = api.plex_id() - LOG.info('Adding season with plex_id %s', plex_id) if not plex_id: LOG.error('Error getting plex_id for season, skipping: %s', xml.attrib) @@ -312,11 +311,13 @@ class Season(TvShowMixin, ItemBase): return parent_id = show['kodi_id'] if update_item: + LOG.info('UPDATE season plex_id %s - %s', plex_id, api.title()) kodi_id = season['kodi_id'] self.kodidb.modify_artwork(api.artwork(), kodi_id, v.KODI_TYPE_SEASON) else: + LOG.info('ADD season plex_id %s - %s', plex_id, api.title()) kodi_id = self.kodidb.add_season(parent_id, api.season_number()) self.kodidb.add_artwork(api.artwork(), kodi_id,