Browse Source

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

rtmp_test
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
dd5d2eb03c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      youtube_dl/FileDownloader.py

+ 1
- 0
youtube_dl/FileDownloader.py View File

@ -398,6 +398,7 @@ class FileDownloader(object):
self._hook_progress({
'filename': filename,
'status': 'finished',
'total_bytes': os.path.getsize(encodeFilename(filename)),
})
return True


Loading…
Cancel
Save