mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-19 09:25:43 +00:00
[downloader/http] Remove wrong '_hook_progress' call (fixes #5117)
This commit is contained in:
parent
dc570c4951
commit
123397317c
@ -218,12 +218,6 @@ def real_download(self, filename, info_dict):
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user