1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 08:34:32 +01:00

[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

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 = (