]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
If the file is already downloaded include the size in the progress hook
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 22 Sep 2013 21:39:30 +0000 (23:39 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 22 Sep 2013 21:39:30 +0000 (23:39 +0200)
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