Skip to content

Commit

Permalink
Series re-search update
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 9, 2024
1 parent 112960e commit 38c9b1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def _process_failed_individual(self, hash_: str, entry: int, skip_blacklist: set
while completed:
try:
completed = False
episode = self.client.get_episode_by_episode_id(object_id[0])
episode = self.client.get_episode_by_episode_id(object_ids[0])
data = self.client.get_series(episode["seriesId"])
name = data.get("title")
series_id = data.get("series", {}).get("id")
Expand All @@ -838,12 +838,12 @@ def _process_failed_individual(self, hash_: str, entry: int, skip_blacklist: set
absoluteEpisodeNumber,
name,
tvdbId,
episode["id"],
object_ids[0],
)
else:
self.logger.notice(
"Re-Searching episode: %s",
episode["id"],
object_ids[0],
)
except (
requests.exceptions.ChunkedEncodingError,
Expand All @@ -852,9 +852,9 @@ def _process_failed_individual(self, hash_: str, entry: int, skip_blacklist: set
AttributeError,
):
completed = True

if episode["id"] in self.queue_file_ids:
self.queue_file_ids.remove(episode["id"])
for object_id in object_ids:
if object_id in self.queue_file_ids:
self.queue_file_ids.remove(object_id)
completed = True
while completed:
try:
Expand Down

0 comments on commit 38c9b1e

Please sign in to comment.