浏览代码

[downloader/http] Remove wrong '_hook_progress' call (fixes #5117)

Jaime Marquínez Ferrándiz 10 年之前
父节点
当前提交
123397317c
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      youtube_dl/downloader/http.py

+ 0 - 6
youtube_dl/downloader/http.py

@@ -218,12 +218,6 @@ class HttpFD(FileDownloader):
         if tmpfilename != '-':
         if tmpfilename != '-':
             stream.close()
             stream.close()
 
 
-        self._hook_progress({
-            'downloaded_bytes': byte_counter,
-            'total_bytes': data_len,
-            'tmpfilename': tmpfilename,
-            'status': 'error',
-        })
         if data_len is not None and byte_counter != data_len:
         if data_len is not None and byte_counter != data_len:
             raise ContentTooShortError(byte_counter, int(data_len))
             raise ContentTooShortError(byte_counter, int(data_len))
         self.try_rename(tmpfilename, filename)
         self.try_rename(tmpfilename, filename)