mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 18:34:32 +01:00
fixed a report error when in stdout mode
This commit is contained in:
parent
a59c25bc63
commit
96cf6898fa
@ -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 New Issue
Block a user