From: Sergey M․ Date: Sat, 26 Sep 2015 23:55:48 +0000 (+0600) Subject: [extractor/generic] Add support for condenast script embeds (Closes #6885, closes... X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=dd467d33d0883c0c0c94d7fc5ed041d5c12bb564;p=youtube-dl [extractor/generic] Add support for condenast script embeds (Closes #6885, closes #6991) --- 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 @@ class GenericIE(InfoExtractor): 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')