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:
parent
d151082cf0
commit
2d8fec37a5
1 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue