]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[downloader/http] Remove wrong '_hook_progress' call (fixes #5117)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 3 Mar 2015 17:45:56 +0000 (18:45 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 3 Mar 2015 17:45:56 +0000 (18:45 +0100)
youtube_dl/downloader/http.py

index 2e3dac8251dbaf5d8b3e1a90bc459f362d14f72e..5e99827994d80107a0e63acdc6280970b91df5bc 100644 (file)
@@ -218,12 +218,6 @@ class HttpFD(FileDownloader):
         if tmpfilename != '-':
             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:
             raise ContentTooShortError(byte_counter, int(data_len))
         self.try_rename(tmpfilename, filename)