From dd239a8e5d7a8bc37cf73a2ee4aa9a476f806205 Mon Sep 17 00:00:00 2001 From: Francesco Grazioso <40018163+FrancescoGrazioso@users.noreply.github.com> Date: Fri, 3 May 2024 16:18:18 +0200 Subject: [PATCH] fix first episode not downloaded and last downloaded twice in anime series (#123) --- Src/Api/anime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Api/anime.py b/Src/Api/anime.py index 7456d60..440a81b 100644 --- a/Src/Api/anime.py +++ b/Src/Api/anime.py @@ -55,7 +55,7 @@ class EpisodeDownloader: # For all seasons elif cmd_insert == "*": - list_season_select = list(range(1, max_count + 1)) + list_season_select = list(range(0, max_count)) # Return list of selected seasons return list_season_select @@ -165,7 +165,7 @@ class EpisodeDownloader: ANIME_FOLDER, SERIES_FOLDER, self.tv_name, - f"{index_select}.mp4", + f"{index_select + 1}.mp4", ), )