mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-28 17:51:25 +00:00
Fix concurrent formats downloading to stdout (#15617)
Authored by: grqz
This commit is contained in:
@@ -3481,11 +3481,12 @@ 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 != '-':
|
||||||
f['filepath'] = fname = prepend_extension(
|
for f in info_dict['requested_formats']:
|
||||||
correct_ext(temp_filename, info_dict['ext']),
|
f['filepath'] = fname = prepend_extension(
|
||||||
'f{}'.format(f['format_id']), info_dict['ext'])
|
correct_ext(temp_filename, info_dict['ext']),
|
||||||
downloaded.append(fname)
|
'f{}'.format(f['format_id']), info_dict['ext'])
|
||||||
|
downloaded.append(fname)
|
||||||
info_dict['url'] = '\n'.join(f['url'] for f in info_dict['requested_formats'])
|
info_dict['url'] = '\n'.join(f['url'] for f in info_dict['requested_formats'])
|
||||||
success, real_download = self.dl(temp_filename, info_dict)
|
success, real_download = self.dl(temp_filename, info_dict)
|
||||||
info_dict['__real_download'] = real_download
|
info_dict['__real_download'] = real_download
|
||||||
|
|||||||
Reference in New Issue
Block a user