If the file is already downloaded include the size in the progress hook
[youtube-dl] / youtube_dl / FileDownloader.py
index 706592988fbeca9902c6a61e696d54bc342bbd9f..d6673fd3ab88d543086417f903cf2ff7d4019944 100644 (file)
@@ -398,6 +398,7 @@ class FileDownloader(object):
             self._hook_progress({
                 'filename': filename,
                 'status': 'finished',
+                'total_bytes': os.path.getsize(encodeFilename(filename)),
             })
             return True