From e40ed6c1a2420ec857380c46286eb9d759f998f1 Mon Sep 17 00:00:00 2001 From: Feramance Date: Mon, 9 Dec 2024 16:14:52 +0100 Subject: [PATCH] More logging for further debugging --- qBitrr/arss.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 051048d0..037bf9af 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -1585,19 +1585,23 @@ def db_get_files_movies(self) -> list[list[MoviesFilesModel, bool, bool]] | None if self.type == "radarr": condition = self.model_file.Year.is_null(False) if self.do_upgrade_search: + self.logger.trace("Condition 1") condition &= self.model_file.Upgrade == False else: if self.quality_unmet_search and not self.custom_format_unmet_search: + self.logger.trace("Condition 2") condition &= ( self.model_file.Searched == False | self.model_file.QualityMet == False ) elif not self.quality_unmet_search and self.custom_format_unmet_search: + self.logger.trace("Condition 3") condition &= ( self.model_file.Searched == False | self.model_file.CustomFormatMet == False ) elif self.quality_unmet_search and self.custom_format_unmet_search: + self.logger.trace("Condition 4") condition &= ( self.model_file.Searched == False | self.model_file.QualityMet @@ -1605,9 +1609,11 @@ def db_get_files_movies(self) -> list[list[MoviesFilesModel, bool, bool]] | None == False ) else: + self.logger.trace("Condition 5") condition &= self.model_file.MovieFileId == 0 condition &= self.model_file.Searched == False if self.search_by_year: + self.logger.trace("Condition 6") condition &= self.model_file.Year == self.search_current_year for entry in ( self.model_file.select() @@ -4880,7 +4886,7 @@ def run_search_loop(self) -> NoReturn: time.sleep(((timer + loop_timer) - datetime.now()).total_seconds()) self.logger.trace("Restarting loop testing 1") raise RestartLoopException - elif datetime.now() >= (timer + loop_timer): + elif datetime.now() >= (timer + loop_timer) and searched: self.refresh_download_queue() self.logger.trace("Restarting loop testing 2") raise RestartLoopException