projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30e6161
)
[vimeo] Restrict iframe embed regex (closes #14600)
author
Sergey M․
<dstftw@gmail.com>
Fri, 27 Oct 2017 15:21:47 +0000
(22:21 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 27 Oct 2017 15:21:47 +0000
(22:21 +0700)
youtube_dl/extractor/vimeo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vimeo.py
b/youtube_dl/extractor/vimeo.py
index c3f71b45e3bbee17bbf7e1d4787ac0aa888f251b..cedb548767e84a512b8ca5e0253d81f62a8ee502 100644
(file)
--- a/
youtube_dl/extractor/vimeo.py
+++ b/
youtube_dl/extractor/vimeo.py
@@
-412,7
+412,7
@@
class VimeoIE(VimeoBaseInfoExtractor):
urls = []
# Look for embedded (iframe) Vimeo player
for mobj in re.finditer(
- r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//player\.vimeo\.com/video/
.+
?)\1',
+ r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//player\.vimeo\.com/video/
\d+.*
?)\1',
webpage):
urls.append(VimeoIE._smuggle_referrer(unescapeHTML(mobj.group('url')), url))
PLAIN_EMBED_RE = (