mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 19:52:11 +00:00
fixed a report error when in stdout mode
This commit is contained in:
parent
a59c25bc63
commit
96cf6898fa
1 changed files with 1 additions and 1 deletions
|
@ -1005,7 +1005,7 @@ class FileDownloader(object):
|
|||
return False
|
||||
if self.params.get('writetostdout', False):
|
||||
stream.close() # if we're using stdout, it was already open
|
||||
self.report_finish()
|
||||
self.report_finish()
|
||||
if data_len is not None and byte_counter != data_len:
|
||||
raise ContentTooShortError(byte_counter, long(data_len))
|
||||
self.try_rename(tmpfilename, filename)
|
||||
|
|
Loading…
Reference in a new issue