mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 18:57:08 -05:00 
			
		
		
		
	If the file is already downloaded include the size in the progress hook
This commit is contained in:
		@@ -398,6 +398,7 @@ class FileDownloader(object):
 | 
				
			|||||||
            self._hook_progress({
 | 
					            self._hook_progress({
 | 
				
			||||||
                'filename': filename,
 | 
					                'filename': filename,
 | 
				
			||||||
                'status': 'finished',
 | 
					                'status': 'finished',
 | 
				
			||||||
 | 
					                'total_bytes': os.path.getsize(encodeFilename(filename)),
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            return True
 | 
					            return True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user