Skip to content

Commit

Permalink
[build] Added next loop time debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Oct 30, 2023
1 parent a3a517f commit 092f0b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1962,11 +1962,8 @@ def db_update_single_series(
):
completed = True
statistics = seriesMetadata.get("statistics")
self.logger.debug("statistics: %s", statistics)
episode_count = statistics.get("episodeCount")
self.logger.debug("episode_count: %s", episode_count)
searched = episode_count == statistics.get("episodeFileCount")
self.logger.debug("searched: %s", searched)
if episode_count == 0:
searched = True
Title = seriesMetadata.get("title")
Expand Down Expand Up @@ -3745,6 +3742,7 @@ def run_search_loop(self) -> NoReturn:
if self.loop_completed:
years_index = 0
timer = datetime.now()
self.logger.debug("Loop restarting at %s", timer + loop_timer)
if self.search_by_year:
if years_index == 0:
years, years_count = self.get_year_search()
Expand All @@ -3771,7 +3769,7 @@ def run_search_loop(self) -> NoReturn:
self.refresh_download_queue()
self.force_grab()
raise RestartLoopException
elif datetime.now() > (timer + loop_timer):
elif datetime.now() >= (timer + loop_timer):
self.refresh_download_queue()
self.force_grab()
raise RestartLoopException
Expand Down

0 comments on commit 092f0b2

Please sign in to comment.