diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index fab137199..43bed3648 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -28,9 +28,7 @@ class ExternalFD(FileDownloader): retval = self._call_downloader(tmpfilename, info_dict) if retval == 0: if filename == '-': - # xxx report_progress() expects total_bytes to be set or it throws a KeyError, so - # we can't just call: self._hook_progress({'status': 'finished'}) - self.to_screen('[download] Download completed') + self._hook_progress({'status': 'finished'}) else: fsize = os.path.getsize(encodeFilename(tmpfilename)) self.to_screen('\r[%s] Downloaded %s bytes' % (self.get_basename(), fsize))