diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2013-09-22 23:39:30 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2013-09-22 23:39:30 +0200 |
commit | dd5d2eb03c3673cff5a27cc34c0271085002583e (patch) | |
tree | 971daf34f2ef384158d01c3338317b1a42044881 | |
parent | 4ae720042c3959cae856ce93578a0ba4b5817870 (diff) | |
download | youtube-dl-dd5d2eb03c3673cff5a27cc34c0271085002583e.tar.gz youtube-dl-dd5d2eb03c3673cff5a27cc34c0271085002583e.zip |
If the file is already downloaded include the size in the progress hook
-rw-r--r-- | youtube_dl/FileDownloader.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |