Skip to content

Commit

Permalink
episode count fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Nov 18, 2023
1 parent 2a322d3 commit 564222e
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1991,22 +1991,18 @@ def db_update_single_series(
requests.exceptions.ConnectionError,
):
completed = True
self.logger.info(
"%s | Episodes:%s | Files:%s",
db_entry.Title,
seriesMetadata.get("statistics").get("episodeCount"),
seriesMetadata.get("statistics").get("episodeFileCount"),
)
statistics = seriesMetadata("statistics")
statistics = seriesMetadata.get("statistics")
if statistics:
if self.search_specials:
episode_count = statistics.get("totalEpisodeCount")
episode_count = statistics.get("statistics").get(
"totalEpisodeCount"
)
else:
episode_count = statistics.get("episodeCount")
searched = episode_count == statistics.get("episodeFileCount")
episode_count = statistics.get("statistics").get("episodeCount")
searched = episode_count == statistics.get("statistics").get(
"episodeFileCount"
)
else:
episode_count = 0
if episode_count == 0:
searched = True
Title = seriesMetadata.get("title")
Monitored = db_entry.Monitored
Expand Down

0 comments on commit 564222e

Please sign in to comment.