Skip to content

Commit

Permalink
Search fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Nov 20, 2023
1 parent e53fddf commit 154e7de
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2420,20 +2420,19 @@ def maybe_do_search(
Completed=False,
EntryId=file_model.EntryId,
).on_conflict_replace().execute()
if file_model.EntryId:
completed = True
while completed:
try:
completed = False
self.client.post_command(
self.search_api_command, seriesId=file_model.EntryId
)
except (
requests.exceptions.ChunkedEncodingError,
requests.exceptions.ContentDecodingError,
requests.exceptions.ConnectionError,
):
completed = True
completed = True
while completed:
try:
completed = False
self.client.post_command(
self.search_api_command, seriesId=file_model.EntryId
)
except (
requests.exceptions.ChunkedEncodingError,
requests.exceptions.ContentDecodingError,
requests.exceptions.ConnectionError,
):
completed = True
file_model.update(Searched=True, Upgrade=True).where(
file_model.EntryId == file_model.EntryId
).execute()
Expand Down

0 comments on commit 154e7de

Please sign in to comment.