mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-10-25 13:16:51 +09:00
If the file is already downloaded include the size in the progress hook
This commit is contained in:
1 parent
4ae720042c
commit
dd5d2eb03c
1 file changed
+1
@@ -398,6 +398,7 @@ class FileDownloader(object):
|
||||
self._hook_progress({
|
||||
'filename': filename,
|
||||
'status': 'finished',
|
||||
'total_bytes': os.path.getsize(encodeFilename(filename)),
|
||||
})
|
||||
return True
|
||||
|
||||
|
||||
Reference in new issue
Block a user