Skip to content

Commit

Permalink
[release] Release fix and logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Nov 17, 2023
1 parent d879a2e commit ed3a58d
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
)
Expand Down

0 comments on commit ed3a58d

Please sign in to comment.