[vimeo] Allow for iframe embeds that don't quote src.

Modern browsers are at least lenient enough to allow this and render the page
correctly so youtube_dl should be able to crawl these too.
This commit is contained in:
Chad Estioco 2020-07-04 05:40:24 +08:00
parent 07af16b92e
commit 4c47effbcb
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,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/\d+.*?)\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 = (