mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44: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:
parent
07af16b92e
commit
4c47effbcb
@ -523,7 +523,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/\d+.*?)\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 New Issue
Block a user