diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2023-07-23 19:09:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 00:09:52 +0000 |
commit | 550e65410a7a1b105923494ac44460a4dc1a15d9 (patch) | |
tree | 4c895f240623859d2b5ba5f71f3e6207d7cc3ffb /yt_dlp/extractor/livestream.py | |
parent | 39837ae3199aa934299badbd0d63243ed639e6c8 (diff) |
[ie] Extract subtitles from SMIL manifests (#7667)
Authored by: bashonly, pukkandan
Diffstat (limited to 'yt_dlp/extractor/livestream.py')
-rw-r--r-- | yt_dlp/extractor/livestream.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/extractor/livestream.py b/yt_dlp/extractor/livestream.py index 692d6ab3a..a05a0fa9e 100644 --- a/yt_dlp/extractor/livestream.py +++ b/yt_dlp/extractor/livestream.py @@ -80,7 +80,8 @@ class LivestreamIE(InfoExtractor): }] _API_URL_TEMPLATE = 'http://livestream.com/api/accounts/%s/events/%s' - def _parse_smil_formats(self, smil, smil_url, video_id, namespace=None, f4m_params=None, transform_rtmp_url=None): + def _parse_smil_formats_and_subtitles( + self, smil, smil_url, video_id, namespace=None, f4m_params=None, transform_rtmp_url=None): base_ele = find_xpath_attr( smil, self._xpath_ns('.//meta', namespace), 'name', 'httpBase') base = base_ele.get('content') if base_ele is not None else 'http://livestreamvod-f.akamaihd.net/' @@ -104,7 +105,7 @@ class LivestreamIE(InfoExtractor): 'tbr': tbr, 'preference': -1000, # Strictly inferior than all other formats? }) - return formats + return formats, {} def _extract_video_info(self, video_data): video_id = compat_str(video_data['id']) |