diff --git a/youtube_dl/downloader/common.py b/youtube_dl/downloader/common.py index 3dc144b4e..f04cff68b 100644 --- a/youtube_dl/downloader/common.py +++ b/youtube_dl/downloader/common.py @@ -338,6 +338,7 @@ class FileDownloader(object): self.report_file_already_downloaded(filename) self._hook_progress({ 'filename': filename, + 'alreadyexists':True, 'status': 'finished', 'total_bytes': os.path.getsize(encodeFilename(filename)), }) diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py index af405b950..9f0588a9e 100644 --- a/youtube_dl/downloader/http.py +++ b/youtube_dl/downloader/http.py @@ -106,6 +106,7 @@ class HttpFD(FileDownloader): self.try_rename(tmpfilename, filename) self._hook_progress({ 'filename': filename, + 'alreadyexists':True, 'status': 'finished', 'downloaded_bytes': resume_len, 'total_bytes': resume_len,