From 4c47effbcb7ae98cfb0f8da1cefd46e852426056 Mon Sep 17 00:00:00 2001 From: Chad Estioco Date: Sat, 4 Jul 2020 05:40:24 +0800 Subject: [PATCH] [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. --- youtube_dl/extractor/vimeo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index 421795b94..6f947515e 100644 --- a/youtube_dl/extractor/vimeo.py +++ b/youtube_dl/extractor/vimeo.py @@ -523,7 +523,7 @@ class VimeoIE(VimeoBaseInfoExtractor): urls = [] # Look for embedded (iframe) Vimeo player for mobj in re.finditer( - r']+?src=(["\'])(?P(?:https?:)?//player\.vimeo\.com/video/\d+.*?)\1', + r']+?src=(["\']?)(?P(?:https?:)?//player\.vimeo\.com/video/\d+.*?)\1', webpage): urls.append(VimeoIE._smuggle_referrer(unescapeHTML(mobj.group('url')), url)) PLAIN_EMBED_RE = (