aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-27 05:55:48 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-27 05:55:48 +0600
commitdd467d33d0883c0c0c94d7fc5ed041d5c12bb564 (patch)
tree7a2813199b55ee6d965d91c3beba2259ba21a00b /youtube_dl/extractor
parentc6b8f4d0c9413df9c33f3bd67859d1a9675ec8aa (diff)
[extractor/generic] Add support for condenast script embeds (Closes #6885, closes #6991)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/generic.py2
1 files changed, 1 insertions, 1 deletions
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'<iframe[^>]+?src=(["\'])(?P<url>%s)\1' % CondeNastIE.EMBED_URL,
+ r'<(?:iframe|script)[^>]+?src=(["\'])(?P<url>%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')