From: Sergey M․ Date: Fri, 27 Oct 2017 15:21:47 +0000 (+0700) Subject: [vimeo] Restrict iframe embed regex (closes #14600) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=7c1f419341ac2dec123eaa0075212edc6af3302b;p=youtube-dl [vimeo] Restrict iframe embed regex (closes #14600) --- 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']+?src=(["\'])(?P(?:https?:)?//player\.vimeo\.com/video/.+?)\1', + r']+?src=(["\'])(?P(?:https?:)?//player\.vimeo\.com/video/\d+.*?)\1', webpage): urls.append(VimeoIE._smuggle_referrer(unescapeHTML(mobj.group('url')), url)) PLAIN_EMBED_RE = (