]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[vimeo] Restrict iframe embed regex (closes #14600)
authorSergey M․ <dstftw@gmail.com>
Fri, 27 Oct 2017 15:21:47 +0000 (22:21 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 27 Oct 2017 15:21:47 +0000 (22:21 +0700)
youtube_dl/extractor/vimeo.py

index c3f71b45e3bbee17bbf7e1d4787ac0aa888f251b..cedb548767e84a512b8ca5e0253d81f62a8ee502 100644 (file)
@@ -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 = (