don't overwrite other downloader_options

This commit is contained in:
bashonly 2025-05-20 18:37:08 +00:00 committed by GitHub
parent d664768a01
commit 0976846080
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,9 +204,9 @@ class TwitchBaseIE(InfoExtractor):
for fmt in formats:
if fmt.get('vcodec') and fmt['vcodec'].startswith('av01'):
# mpegts does not yet have proper support for av1
fmt['downloader_options'] = {'ffmpeg_args_out': ['-f', 'mp4']}
fmt.setdefault('downloader_options', {})['ffmpeg_args_out'] = ['-f', 'mp4']
if self.get_param('live_from_start'):
fmt['downloader_options'] = {'ffmpeg_args': ['-live_start_index', '0']}
fmt.setdefault('downloader_options', {})['ffmpeg_args'] = ['-live_start_index', '0']
return formats