Browse Source

[vimeo] Restrict iframe embed regex (closes #14600)

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
7c1f419341
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/vimeo.py

+ 1
- 1
youtube_dl/extractor/vimeo.py View File

@ -412,7 +412,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
urls = [] urls = []
# Look for embedded (iframe) Vimeo player # Look for embedded (iframe) Vimeo player
for mobj in re.finditer( 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): webpage):
urls.append(VimeoIE._smuggle_referrer(unescapeHTML(mobj.group('url')), url)) urls.append(VimeoIE._smuggle_referrer(unescapeHTML(mobj.group('url')), url))
PLAIN_EMBED_RE = ( PLAIN_EMBED_RE = (


Loading…
Cancel
Save