mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[vimeo] Restrict iframe embed regex (closes #14600)
This commit is contained in:
parent
30e6161799
commit
7c1f419341
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ def _extract_urls(url, webpage):
|
||||||
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…
Reference in a new issue