mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Add title download time elapsed to finish log
This commit is contained in:
		
							parent
							
								
									7ee5e71075
								
							
						
					
					
						commit
						d75996f6e4
					
				@ -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,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user