瀏覽代碼

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

Jaime Marquínez Ferrándiz 12 年之前
父節點
當前提交
dd5d2eb03c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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