mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-12 14:26:49 +01:00
[uplynk] Extract subtitles from HLS manifests
This commit is contained in:
parent
4bed436371
commit
2de3b21e05
@ -30,7 +30,7 @@ class UplynkIE(InfoExtractor):
|
|||||||
def _extract_uplynk_info(self, uplynk_content_url):
|
def _extract_uplynk_info(self, uplynk_content_url):
|
||||||
path, external_id, video_id, session_id = re.match(UplynkIE._VALID_URL, uplynk_content_url).groups()
|
path, external_id, video_id, session_id = re.match(UplynkIE._VALID_URL, uplynk_content_url).groups()
|
||||||
display_id = video_id or external_id
|
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,
|
'http://content.uplynk.com/%s.m3u8' % path,
|
||||||
display_id, 'mp4', 'm3u8_native')
|
display_id, 'mp4', 'm3u8_native')
|
||||||
if session_id:
|
if session_id:
|
||||||
@ -48,6 +48,7 @@ def _extract_uplynk_info(self, uplynk_content_url):
|
|||||||
'duration': float_or_none(asset.get('duration')),
|
'duration': float_or_none(asset.get('duration')),
|
||||||
'uploader_id': asset.get('owner'),
|
'uploader_id': asset.get('owner'),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
'subtitles': subtitles,
|
||||||
}
|
}
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user