From: Jaime Marquínez Ferrándiz Date: Sun, 22 Sep 2013 21:39:30 +0000 (+0200) Subject: If the file is already downloaded include the size in the progress hook X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=dd5d2eb03c3673cff5a27cc34c0271085002583e;p=youtube-dl.git If the file is already downloaded include the size in the progress hook --- diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py index 706592988..d6673fd3a 100644 --- a/youtube_dl/FileDownloader.py +++ b/youtube_dl/FileDownloader.py @@ -398,6 +398,7 @@ class FileDownloader(object): self._hook_progress({ 'filename': filename, 'status': 'finished', + 'total_bytes': os.path.getsize(encodeFilename(filename)), }) return True