From 09768460804ab11ce164064218e1b3f097ead4b5 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Tue, 20 May 2025 18:37:08 +0000 Subject: [PATCH] don't overwrite other downloader_options --- yt_dlp/extractor/twitch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/twitch.py b/yt_dlp/extractor/twitch.py index f0a9a24bd9..2de5552c4f 100644 --- a/yt_dlp/extractor/twitch.py +++ b/yt_dlp/extractor/twitch.py @@ -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