Skip to content

Commit

Permalink
Further unmonitord feature change
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Dec 4, 2024
1 parent 97af337 commit bdaf792
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2223,11 +2223,21 @@ def db_update_single_series(
episodeData = self.model_file.get_or_none(
self.model_file.EntryId == db_entry["id"]
)
while True:
try:
self.api_call_count += 1
episode = self.client.get_episode(db_entry["id"])
break
except (
requests.exceptions.ChunkedEncodingError,
requests.exceptions.ContentDecodingError,
requests.exceptions.ConnectionError,
JSONDecodeError,
):
continue
if episode["monitored"] or self.search_unmonitored:
while True:
try:
self.api_call_count += 1
episode = self.client.get_episode(db_entry["id"])
if episodeData:
if not episodeData.MinCustomFormatScore:
self.api_call_count += 1
Expand Down

0 comments on commit bdaf792

Please sign in to comment.