diff options
author | Felix S <felix.von.s@posteo.de> | 2021-04-18 08:41:46 +0200 |
---|---|---|
committer | Felix S <felix.von.s@posteo.de> | 2021-04-28 17:23:37 +0530 |
commit | 2de3b21e05a619047ca4ae5af7932cca0ae3a5cb (patch) | |
tree | ea3df6661fdb3a48ad3eb59727b3c3dcbaa4a486 | |
parent | 4bed436371ea43c9068f5dee9cfda38dfef0b719 (diff) | |
download | hypervideo-pre-2de3b21e05a619047ca4ae5af7932cca0ae3a5cb.tar.lz hypervideo-pre-2de3b21e05a619047ca4ae5af7932cca0ae3a5cb.tar.xz hypervideo-pre-2de3b21e05a619047ca4ae5af7932cca0ae3a5cb.zip |
[uplynk] Extract subtitles from HLS manifests
-rw-r--r-- | yt_dlp/extractor/uplynk.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/uplynk.py b/yt_dlp/extractor/uplynk.py index f06bf5b12..c0dba0a6a 100644 --- a/yt_dlp/extractor/uplynk.py +++ b/yt_dlp/extractor/uplynk.py @@ -30,7 +30,7 @@ class UplynkIE(InfoExtractor): def _extract_uplynk_info(self, uplynk_content_url): path, external_id, video_id, session_id = re.match(UplynkIE._VALID_URL, uplynk_content_url).groups() display_id = video_id or external_id - formats = self._extract_m3u8_formats( + formats, subtitles = self._extract_m3u8_formats_and_subtitles( 'http://content.uplynk.com/%s.m3u8' % path, display_id, 'mp4', 'm3u8_native') if session_id: @@ -48,6 +48,7 @@ class UplynkIE(InfoExtractor): 'duration': float_or_none(asset.get('duration')), 'uploader_id': asset.get('owner'), 'formats': formats, + 'subtitles': subtitles, } def _real_extract(self, url): |