aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/condenast.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/condenast.py')
-rw-r--r--yt_dlp/extractor/condenast.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/condenast.py b/yt_dlp/extractor/condenast.py
index cf6e40cb8..ffdd820e2 100644
--- a/yt_dlp/extractor/condenast.py
+++ b/yt_dlp/extractor/condenast.py
@@ -58,7 +58,10 @@ class CondeNastIE(InfoExtractor):
)''' % '|'.join(_SITES.keys())
IE_DESC = 'Condé Nast media group: %s' % ', '.join(sorted(_SITES.values()))
- EMBED_URL = r'(?:https?:)?//player(?:-backend)?\.(?:%s)\.com/(?:embed(?:js)?|(?:script|inline)/video)/.+?' % '|'.join(_SITES.keys())
+ _EMBED_REGEX = [r'''(?x)
+ <(?:iframe|script)[^>]+?src=(["\'])(?P<url>
+ (?:https?:)?//player(?:-backend)?\.(?:%s)\.com/(?:embed(?:js)?|(?:script|inline)/video)/.+?
+ )\1''' % '|'.join(_SITES.keys())]
_TESTS = [{
'url': 'http://video.wired.com/watch/3d-printed-speakers-lit-with-led',