소스 검색

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({
             self._hook_progress({
                 'filename': filename,
                 'filename': filename,
                 'status': 'finished',
                 'status': 'finished',
+                'total_bytes': os.path.getsize(encodeFilename(filename)),
             })
             })
             return True
             return True