From d75996f6e464d13f8415ca40bdb4745c75b1eb0f Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Wed, 1 Mar 2023 16:06:55 +0000 Subject: [PATCH] Add title download time elapsed to finish log --- devine/commands/dl.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index 0dd69f0..9ede89e 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -434,6 +434,8 @@ class dl: if skip_dl: self.log.info("Skipping Download...") else: + dl_start_time = time.time() + try: with Live( Padding( @@ -561,8 +563,10 @@ class dl: final_path = self.mux_tracks(title, not no_folder, not no_source) + title_dl_time = time_elapsed_since(dl_start_time) + downloaded_table = Table.grid(expand=True) - downloaded_table.add_row("Download Finished! :tada:") + downloaded_table.add_row(f" :tada: Download Finished in [progress.elapsed]{title_dl_time}[/]!") downloaded_table.add_row(Text(str(final_path), overflow="fold")) console.print(Padding( downloaded_table,