From ed3a58dae64f98d8d2add6182940688117331210 Mon Sep 17 00:00:00 2001 From: Feramance Date: Fri, 17 Nov 2023 19:08:49 +0100 Subject: [PATCH] [release] Release fix and logging changes --- qBitrr/arss.py | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index d0dc3b97..256238c7 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -1904,12 +1904,6 @@ def db_update_single_series( EpisodeNumber, ) - self.logger.trace( - "Updating database entry | %s | S%02dE%03d", - SeriesTitle, - SeasonNumber, - EpisodeNumber, - ) to_update = { self.model_file.Monitored: Monitored, self.model_file.Title: Title, @@ -1937,6 +1931,15 @@ def db_update_single_series( except AttributeError: pass + self.logger.trace( + "Updating database entry | %s | S%02dE%03d [Searched:%s][Upgrade:%s]", + SeriesTitle, + SeasonNumber, + EpisodeNumber, + searched, + upgrade, + ) + if request: to_update[self.model_file.IsRequest] = request @@ -1993,7 +1996,7 @@ def db_update_single_series( searched = True Title = seriesMetadata.get("title") Monitored = db_entry.Monitored - self.logger.trace("Updating database entry | %s | %s", Title, searched) + to_update = { self.series_file_model.Monitored: Monitored, self.series_file_model.Title: Title, @@ -2012,6 +2015,13 @@ def db_update_single_series( except AttributeError: pass + self.logger.trace( + "Updating database entry | %s [Searched:%s][Upgrade:%s]", + title, + searched, + upgrade, + ) + db_commands = self.series_file_model.insert( EntryId=EntryId, Title=Title, @@ -2068,7 +2078,6 @@ def db_update_single_series( movieFileId = db_entry.MovieFileId qualityMet = QualityUnmet - self.logger.trace("Updating database entry | %s (%s)", title, tmdbId) to_update = { self.model_file.MovieFileId: movieFileId, self.model_file.Monitored: monitored, @@ -2090,9 +2099,8 @@ def db_update_single_series( to_update[self.model_file.IsRequest] = request self.logger.trace( - "Adding %s to db: [%s][Searched:%s][Upgrade:%s]", + "Updating database entry | %s [Searched:%s][Upgrade:%s]", title, - movieFileId, searched, upgrade, )