Skip to content

Commit

Permalink
More logging for further debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Dec 9, 2024
1 parent f9ca818 commit e40ed6c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1585,29 +1585,35 @@ 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
== False | self.model_file.CustomFormatMet
== 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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e40ed6c

Please sign in to comment.