From 96f408ca494ddb6c3388c50df8bec10a36b1a99f Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 25 Feb 2023 13:12:46 +0000 Subject: [PATCH] Only log available tracks if --list is used Update dl.py --- devine/commands/dl.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index 2e9ec3d..7141f4f 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -331,11 +331,11 @@ class dl: title.tracks.sort_subtitles(by_language=s_lang) title.tracks.sort_chapters() - console.log("> All Tracks:") - available_tracks = title.tracks.tree() - console.log(available_tracks) - - console.log("> Selected Tracks:") # log early so errors logs make sense + if list_: + console.log("> All Tracks:") + available_tracks = title.tracks.tree() + console.log(available_tracks) + continue with console.status("Selecting tracks...", spinner="dots"): if isinstance(title, (Movie, Episode)): @@ -415,9 +415,8 @@ class dl: title.tracks.subtitles.clear() selected_tracks = title.tracks.tree() + console.log("> Selected Tracks:") console.log(selected_tracks) - if list_: - continue # only wanted to see what tracks were available and chosen if skip_dl: console.log("Skipping Download...")