1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-05-09 15:57:12 -05:00

check on both alternatives

This commit is contained in:
Pedro Belo 2025-02-20 20:27:56 -08:00
parent d151082cf0
commit 2d8fec37a5

View file

@ -137,8 +137,9 @@ def _real_extract(self, url):
else:
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
main_source['url'], video_id, 'mp4', m3u8_id='hls')
self._merge_subtitles(traverse_obj(main_source, ('text', ..., {
'url': ('caption', 'srt', 'url', {url_or_none}),
self._merge_subtitles(traverse_obj(main_source, ('text', ..., ('caption', 'subtitle'), {
'url': ('srt', 'url', {url_or_none}),
}, all, {subs_list_to_dict(lang='pt-BR')})), target=subtitles)
return {