Fix copy/paste typo

This commit is contained in:
Zenon Mousmoulas 2021-11-13 11:32:06 +02:00
parent a5ec30e106
commit 28fddc1758

View File

@ -159,11 +159,12 @@ class MegaTVComEmbedIE(MegaTVComBaseIE):
(?P<url>%(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')