From 28fddc175880c6a21c9965a166f13fc239049d1e Mon Sep 17 00:00:00 2001 From: Zenon Mousmoulas Date: Sat, 13 Nov 2021 11:32:06 +0200 Subject: [PATCH] Fix copy/paste typo --- youtube_dl/extractor/megatvcom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/megatvcom.py b/youtube_dl/extractor/megatvcom.py index f3faeb78b..26fbcff4b 100644 --- a/youtube_dl/extractor/megatvcom.py +++ b/youtube_dl/extractor/megatvcom.py @@ -159,11 +159,12 @@ class MegaTVComEmbedIE(MegaTVComBaseIE): (?P%(url_re)s)(?P=_q1) ''' % {'quot_re': r'["\']', 'url_re': _URL_RE} for mobj in re.finditer(EMBED_RE, webpage): + url = unescapeHTML(mobj.group('url')) if url.startswith('//'): scheme = compat_urllib_parse_urlparse(origin_url).scheme \ if origin_url else 'https' url = '%s:%s' % (scheme, url) - yield unescapeHTML(mobj.group('url')) + yield url def _real_extract(self, url): webpage = self._download_webpage(url, 'N/A')