From 7a43d58d82fc37bc9716d9efd2a9b19b90428b22 Mon Sep 17 00:00:00 2001 From: Benex254 Date: Sun, 18 Aug 2024 23:54:16 +0300 Subject: [PATCH] fix: command order --- fastanime/cli/commands/grab.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fastanime/cli/commands/grab.py b/fastanime/cli/commands/grab.py index bef2dec..4185212 100644 --- a/fastanime/cli/commands/grab.py +++ b/fastanime/cli/commands/grab.py @@ -91,13 +91,13 @@ def grab( anime = anime_provider.get_anime(search_results_[search_result]["id"]) if not anime: exit(1) - episodes = sorted( - anime["availableEpisodesDetail"][config.translation_type], key=float - ) if anime_info_only: # grab only the anime data skipping all lines after this grabbed_animes.append(anime) continue + episodes = sorted( + anime["availableEpisodesDetail"][config.translation_type], key=float + ) # where the magic happens if episode_range: