aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/globo.py
diff options
context:
space:
mode:
authorFelix S <felix.von.s@posteo.de>2022-02-11 19:03:33 +0000
committerGitHub <noreply@github.com>2022-02-11 11:03:33 -0800
commit3f047fc406dc2df4f2ca6a75b2ea07d9928b2a09 (patch)
tree6ad24b537ca94fb8d135676b3e3b37708b7992fa /yt_dlp/extractor/globo.py
parent82b517678362f8779450f686bb5a283057e486d4 (diff)
downloadhypervideo-pre-3f047fc406dc2df4f2ca6a75b2ea07d9928b2a09.tar.lz
hypervideo-pre-3f047fc406dc2df4f2ca6a75b2ea07d9928b2a09.tar.xz
hypervideo-pre-3f047fc406dc2df4f2ca6a75b2ea07d9928b2a09.zip
[extractor] Extract subtitles from manifests for more sites (#2686)
vimeo, globo, kaltura, svt Authored by: fstirlitz
Diffstat (limited to 'yt_dlp/extractor/globo.py')
-rw-r--r--yt_dlp/extractor/globo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/globo.py b/yt_dlp/extractor/globo.py
index 9addb7043..f6aaae1e9 100644
--- a/yt_dlp/extractor/globo.py
+++ b/yt_dlp/extractor/globo.py
@@ -139,11 +139,11 @@ class GloboIE(InfoExtractor):
resource_url = source['scheme'] + '://' + source['domain'] + source['path']
signed_url = '%s?h=%s&k=html5&a=%s' % (resource_url, signed_hash, 'F' if video.get('subscriber_only') else 'A')
- formats.extend(self._extract_m3u8_formats(
- signed_url, video_id, 'mp4', entry_protocol='m3u8_native', m3u8_id='hls', fatal=False))
+ fmts, subtitles = self._extract_m3u8_formats_and_subtitles(
+ signed_url, video_id, 'mp4', entry_protocol='m3u8_native', m3u8_id='hls', fatal=False)
+ formats.extend(fmts)
self._sort_formats(formats)
- subtitles = {}
for resource in video['resources']:
if resource.get('type') == 'subtitle':
subtitles.setdefault(resource.get('language') or 'por', []).append({