Merge pull request #1021 from tcely/patch-2

Remux video for combined format download
This commit is contained in:
meeb 2025-05-07 13:44:35 +10:00 committed by GitHub
commit 0380dc8fee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -336,12 +336,15 @@ def download_media(
) )
# assignment is the quickest way to cover both 'get' cases # assignment is the quickest way to cover both 'get' cases
pp_opts.exec_cmd['after_move'] = cmds pp_opts.exec_cmd['after_move'] = cmds
elif '+' not in media_format:
pp_opts.remuxvideo = extension
ytopts = { ytopts = {
'format': media_format, 'format': media_format,
'final_ext': extension, 'final_ext': extension,
'merge_output_format': extension, 'merge_output_format': extension,
'outtmpl': os.path.basename(output_file), 'outtmpl': os.path.basename(output_file),
'remuxvideo': pp_opts.remuxvideo,
'quiet': False if settings.DEBUG else True, 'quiet': False if settings.DEBUG else True,
'verbose': True if settings.DEBUG else False, 'verbose': True if settings.DEBUG else False,
'noprogress': None if settings.DEBUG else True, 'noprogress': None if settings.DEBUG else True,