aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-10-27 22:21:47 +0700
committerSergey M․ <dstftw@gmail.com>2017-10-27 22:21:47 +0700
commit7c1f419341ac2dec123eaa0075212edc6af3302b (patch)
treec30645b574228ab624210d97bd3d6d4e2e94f0c6
parent30e6161799dfdf9f53d3c8eaa9e10afe615bc5dd (diff)
[vimeo] Restrict iframe embed regex (closes #14600)
-rw-r--r--youtube_dl/extractor/vimeo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py
index c3f71b45e..cedb54876 100644
--- 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 = (