Fix concurrent formats downloading to stdout (#15617)
Authored by: grqz
This commit is contained in:
parent
1829a53a54
commit
5bf91072bc
1 changed files with 6 additions and 5 deletions
|
|
@ -3481,7 +3481,8 @@ class YoutubeDL:
|
||||||
if dl_filename is not None:
|
if dl_filename is not None:
|
||||||
self.report_file_already_downloaded(dl_filename)
|
self.report_file_already_downloaded(dl_filename)
|
||||||
elif fd:
|
elif fd:
|
||||||
for f in info_dict['requested_formats'] if fd != FFmpegFD else []:
|
if fd != FFmpegFD and temp_filename != '-':
|
||||||
|
for f in info_dict['requested_formats']:
|
||||||
f['filepath'] = fname = prepend_extension(
|
f['filepath'] = fname = prepend_extension(
|
||||||
correct_ext(temp_filename, info_dict['ext']),
|
correct_ext(temp_filename, info_dict['ext']),
|
||||||
'f{}'.format(f['format_id']), info_dict['ext'])
|
'f{}'.format(f['format_id']), info_dict['ext'])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue