mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Replace download speeds with "Downloaded" text when finished
This commit is contained in:
		
							parent
							
								
									2a8307b98d
								
							
						
					
					
						commit
						a45c784569
					
				@ -915,6 +915,8 @@ class dl:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                        track.path = save_path
 | 
					                        track.path = save_path
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                        progress(downloaded="Downloaded")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        if drm:
 | 
					                        if drm:
 | 
				
			||||||
                            drm.decrypt(save_path)
 | 
					                            drm.decrypt(save_path)
 | 
				
			||||||
                            track.drm = None
 | 
					                            track.drm = None
 | 
				
			||||||
 | 
				
			|||||||
@ -519,6 +519,8 @@ class DASH:
 | 
				
			|||||||
                    f.write(segment_file.read_bytes())
 | 
					                    f.write(segment_file.read_bytes())
 | 
				
			||||||
                    segment_file.unlink()
 | 
					                    segment_file.unlink()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            progress(downloaded="Downloaded")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if drm:
 | 
					            if drm:
 | 
				
			||||||
                # TODO: What if the manifest does not mention DRM, but has DRM
 | 
					                # TODO: What if the manifest does not mention DRM, but has DRM
 | 
				
			||||||
                drm.decrypt(save_path)
 | 
					                drm.decrypt(save_path)
 | 
				
			||||||
 | 
				
			|||||||
@ -427,6 +427,8 @@ class HLS:
 | 
				
			|||||||
                f.write(segment_file.read_bytes())
 | 
					                f.write(segment_file.read_bytes())
 | 
				
			||||||
                segment_file.unlink()
 | 
					                segment_file.unlink()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        progress(downloaded="Downloaded")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        track.path = save_path
 | 
					        track.path = save_path
 | 
				
			||||||
        save_dir.rmdir()
 | 
					        save_dir.rmdir()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user