diff options
author | Felix S <felix.von.s@posteo.de> | 2022-03-27 09:35:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-27 02:35:14 -0700 |
commit | 47b8bf207b1206466f1aeaaf0c8ffec91be2fed0 (patch) | |
tree | c30542cb1054ce1c421d5f08bf4910ce3a6ffa9f /yt_dlp/extractor/viu.py | |
parent | 4628a3aa751ac0b2161b216662f0e959eb9bd206 (diff) |
[go,viu] Extract subtitles from the m3u8 manifest (#3219)
Authored by: fstirlitz
Diffstat (limited to 'yt_dlp/extractor/viu.py')
-rw-r--r-- | yt_dlp/extractor/viu.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/viu.py b/yt_dlp/extractor/viu.py index abd553f18..b0a1fca68 100644 --- a/yt_dlp/extractor/viu.py +++ b/yt_dlp/extractor/viu.py @@ -88,10 +88,9 @@ class ViuIE(ViuBaseIE): # r'(/hlsc_)[a-z]+(\d+\.m3u8)', # r'\1whe\2', video_data['href']) m3u8_url = video_data['href'] - formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4') + formats, subtitles = self._extract_m3u8_formats_and_subtitles(m3u8_url, video_id, 'mp4') self._sort_formats(formats) - subtitles = {} for key, value in video_data.items(): mobj = re.match(r'^subtitle_(?P<lang>[^_]+)_(?P<ext>(vtt|srt))', key) if not mobj: |