projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6b8f4d
)
[extractor/generic] Add support for condenast script embeds (Closes #6885, closes...
author
Sergey M․
<dstftw@gmail.com>
Sat, 26 Sep 2015 23:55:48 +0000
(
05:55
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 26 Sep 2015 23:55:48 +0000
(
05:55
+0600)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 22ec78a022fb9c71e3195d20d01ccdc9aba49050..ca5fbafb2606ff096025d8f6a86bff598410d4d0 100644
(file)
--- 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')