From d2d65fa7d732a11ed5d635ddf86354ac751a4330 Mon Sep 17 00:00:00 2001 From: Feramance Date: Sat, 18 Nov 2023 16:58:07 +0100 Subject: [PATCH] Error fix --- qBitrr/arss.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index faa0bb34..14d93320 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -1994,12 +1994,14 @@ def db_update_single_series( statistics = seriesMetadata.get("statistics") if statistics: if self.search_specials: - episode_count = statistics.get("statistics").get( + episode_count = seriesMetadata.get("statistics").get( "totalEpisodeCount" ) else: - episode_count = statistics.get("statistics").get("episodeCount") - searched = episode_count == statistics.get("statistics").get( + episode_count = seriesMetadata.get("statistics").get( + "episodeCount" + ) + searched = episode_count == seriesMetadata.get("statistics").get( "episodeFileCount" ) else: