aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/glomex.py
diff options
context:
space:
mode:
authorZenon Mousmoulas <zmousm@users.noreply.github.com>2022-01-16 14:38:31 +0200
committerGitHub <noreply@github.com>2022-01-16 18:08:31 +0530
commitfdf80059d9a6b345c90af7de1ae4c57823e20f19 (patch)
tree4ec37730447d8306fbe6c2a191d39d470f9530c9 /yt_dlp/extractor/glomex.py
parentaa062713c1980f3bd199fbe58f73a236e07ac40b (diff)
downloadhypervideo-pre-fdf80059d9a6b345c90af7de1ae4c57823e20f19.tar.lz
hypervideo-pre-fdf80059d9a6b345c90af7de1ae4c57823e20f19.tar.xz
hypervideo-pre-fdf80059d9a6b345c90af7de1ae4c57823e20f19.zip
[glomex] Minor fixes (#2357)
Authored by: zmousm
Diffstat (limited to 'yt_dlp/extractor/glomex.py')
-rw-r--r--yt_dlp/extractor/glomex.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/yt_dlp/extractor/glomex.py b/yt_dlp/extractor/glomex.py
index 247a65a79..ec3c35c6f 100644
--- a/yt_dlp/extractor/glomex.py
+++ b/yt_dlp/extractor/glomex.py
@@ -75,7 +75,7 @@ class GlomexBaseIE(InfoExtractor):
format_url, video_id, 'mp4', m3u8_id=format_id,
fatal=False)
formats.extend(formats_)
- subs.update(subs_)
+ self._merge_subtitles(subs_, target=subs)
else:
formats.append({
'url': format_url,
@@ -205,8 +205,6 @@ class GlomexEmbedIE(GlomexBaseIE):
mdict = mobj.groupdict()
if mdict.get('url'):
url = unescapeHTML(mdict['url'])
- if url.startswith('//'):
- url = f'https:{url}'
if not cls.suitable(url):
continue
yield cls._smuggle_origin_url(url, origin_url)