From 8f5bbeb8e3884baa290b715714e8f52f13e61956 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sun, 26 Mar 2023 22:42:16 +0100 Subject: [PATCH] Split the download finished log into dl/title finish logs --- devine/commands/dl.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index 3af6a39..1517b28 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -526,6 +526,12 @@ class dl: )) return + dl_time = time_elapsed_since(dl_start_time) + console.print(Padding( + f"Track downloads finished in [progress.elapsed]{dl_time}[/]", + (0, 5) + )) + video_track_n = 0 while ( @@ -606,11 +612,8 @@ class dl: track.delete() title_dl_time = time_elapsed_since(dl_start_time) - - downloaded_table = Table.grid(expand=True) - downloaded_table.add_row(f" :tada: Download Finished in [progress.elapsed]{title_dl_time}[/]!") console.print(Padding( - downloaded_table, + f":tada: Title downloaded in [progress.elapsed]{title_dl_time}[/]!", (0, 5, 1, 5) ))