From b12c3d86f6f8748fae0a152f1388ca3559c823c8 Mon Sep 17 00:00:00 2001 From: Feramance Date: Mon, 20 Nov 2023 17:23:57 +0100 Subject: [PATCH] Series search fix test --- qBitrr/arss.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 814269c8..24da4490 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -480,7 +480,7 @@ def __init__( ) if self.type == "sonarr": - if self.quality_unmet_search: + if self.quality_unmet_search or self.do_upgrade_search: self.search_api_command = "SeriesSearch" else: self.search_api_command = "MissingEpisodeSearch" @@ -2400,6 +2400,11 @@ def maybe_do_search( else: file_model: SeriesFilesModel active_commands = self.arr_db_query_commands_count() + self.logger.trace( + "Starting search for: %s | [id=%s]", + file_model.Title, + file_model.EntryId, + ) self.logger.debug( "%s%s active search commands", request_tag, @@ -3862,13 +3867,13 @@ def run_search_loop(self) -> NoReturn: self.search_current_year = years[years_index] elif ( datetime.now() >= (timer + loop_timer) - ) or self.arr_db_query_commands_count() == 0: + ) or self.arr_db_query_commands_count == 0: self.refresh_download_queue() self.force_grab() raise RestartLoopException elif ( datetime.now() >= (timer + loop_timer) - ) or self.arr_db_query_commands_count() == 0: + ) or self.arr_db_query_commands_count == 0: self.refresh_download_queue() self.force_grab() raise RestartLoopException