1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 02:14:32 +01:00

If the file is already downloaded include the size in the progress hook

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-09-22 23:39:30 +02:00
parent 4ae720042c
commit dd5d2eb03c

View File

@ -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