Skip to content

Commit

Permalink
Series search fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Nov 20, 2023
1 parent 154e7de commit b12c3d8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b12c3d8

Please sign in to comment.