mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
If the file is already downloaded include the size in the progress hook
This commit is contained in:
parent
4ae720042c
commit
dd5d2eb03c
@ -398,6 +398,7 @@ def _do_download(self, filename, info_dict):
|
||||
self._hook_progress({
|
||||
'filename': filename,
|
||||
'status': 'finished',
|
||||
'total_bytes': os.path.getsize(encodeFilename(filename)),
|
||||
})
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user