mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-27 17:51:30 +00:00
don't overwrite other downloader_options
This commit is contained in:
parent
d664768a01
commit
0976846080
@ -204,9 +204,9 @@ class TwitchBaseIE(InfoExtractor):
|
|||||||
for fmt in formats:
|
for fmt in formats:
|
||||||
if fmt.get('vcodec') and fmt['vcodec'].startswith('av01'):
|
if fmt.get('vcodec') and fmt['vcodec'].startswith('av01'):
|
||||||
# mpegts does not yet have proper support for av1
|
# 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'):
|
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
|
return formats
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user