aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/megatvcom.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/megatvcom.py')
-rw-r--r--yt_dlp/extractor/megatvcom.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/yt_dlp/extractor/megatvcom.py b/yt_dlp/extractor/megatvcom.py
index ec481d016..54c7b7f9f 100644
--- a/yt_dlp/extractor/megatvcom.py
+++ b/yt_dlp/extractor/megatvcom.py
@@ -104,7 +104,7 @@ class MegaTVComEmbedIE(MegaTVComBaseIE):
IE_NAME = 'megatvcom:embed'
IE_DESC = 'megatv.com embedded videos'
_VALID_URL = r'(?:https?:)?//(?:www\.)?megatv\.com/embed/?\?p=(?P<id>\d+)'
- _EMBED_RE = re.compile(rf'''<iframe[^>]+?src=(?P<_q1>["'])(?P<url>{_VALID_URL})(?P=_q1)''')
+ _EMBED_REGEX = [rf'''<iframe[^>]+?src=(?P<_q1>["'])(?P<url>{_VALID_URL})(?P=_q1)''']
_TESTS = [{
'url': 'https://www.megatv.com/embed/?p=2020520979',
@@ -134,11 +134,6 @@ class MegaTVComEmbedIE(MegaTVComBaseIE):
},
}]
- @classmethod
- def _extract_urls(cls, webpage):
- for mobj in cls._EMBED_RE.finditer(webpage):
- yield unescapeHTML(mobj.group('url'))
-
def _match_canonical_url(self, webpage):
LINK_RE = r'''(?x)
<link(?: