1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00
This commit is contained in:
blankie 2025-03-03 13:46:16 +05:30 committed by GitHub
commit 3ee34e3793
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -648,6 +648,8 @@ def run(self, info):
# Don't copy the existing subtitles, we may be running the
# postprocessor a second time
'-map', '-0:s',
# Mark the first subtitle track as default
'-disposition:s:0', 'default',
]
for i, (lang, name) in enumerate(zip(sub_langs, sub_names)):
opts.extend(['-map', f'{i + 1}:0'])