Explorar o código

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

Jaime Marquínez Ferrándiz %!s(int64=12) %!d(string=hai) anos
pai
achega
dd5d2eb03c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      youtube_dl/FileDownloader.py

+ 1 - 0
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