From dd467d33d0883c0c0c94d7fc5ed041d5c12bb564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 27 Sep 2015 05:55:48 +0600 Subject: [PATCH] [extractor/generic] Add support for condenast script embeds (Closes #6885, closes #6991) --- youtube_dl/extractor/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 22ec78a02..ca5fbafb2 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1653,7 +1653,7 @@ def _playlist_from_matches(matches, getter=None, ie=None): return self.url_result(mobj.group('url'), 'MLB') mobj = re.search( - r']+?src=(["\'])(?P%s)\1' % CondeNastIE.EMBED_URL, + r'<(?:iframe|script)[^>]+?src=(["\'])(?P%s)\1' % CondeNastIE.EMBED_URL, webpage) if mobj is not None: return self.url_result(self._proto_relative_url(mobj.group('url'), scheme='http:'), 'CondeNast')