From 564222ebaf1256fafb85cdc5b951242da71ffa73 Mon Sep 17 00:00:00 2001 From: Feramance Date: Sat, 18 Nov 2023 16:54:44 +0100 Subject: [PATCH] episode count fix --- qBitrr/arss.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 4f75f77e..faa0bb34 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -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