0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

[glomex] Minor fixes (#2357)

Authored by: zmousm
This commit is contained in:
Zenon Mousmoulas 2022-01-16 14:38:31 +02:00 committed by GitHub
parent aa062713c1
commit fdf80059d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -1874,6 +1874,7 @@ class GenericIE(InfoExtractor):
'add_ie': [RutubeIE.ie_key()],
},
{
# glomex:embed
'url': 'https://www.skai.gr/news/world/iatrikos-syllogos-tourkias-to-turkovac-aplo-dialyma-erntogan-eiste-apateones-kai-pseytes',
'info_dict': {
'id': 'v-ch2nkhcirwc9-sf',

View file

@ -75,7 +75,7 @@ def _extract_api_data(self, video, video_id):
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 @@ def _extract_urls(cls, webpage, origin_url):
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)