mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-27 00:11:24 +00:00
[generic] More generic support for embedded vimeo player (#1602)
This commit is contained in:
parent
f1cef7a9ff
commit
15fd51b37c
1 changed files with 2 additions and 2 deletions
|
@ -324,9 +324,9 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
# Look for embedded (iframe) Vimeo player
|
# Look for embedded (iframe) Vimeo player
|
||||||
mobj = re.search(
|
mobj = re.search(
|
||||||
r'<iframe[^>]+?src="((?:https?:)?//player\.vimeo\.com/video/.+?)"', webpage)
|
r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//player\.vimeo\.com/video/.+?)\1', webpage)
|
||||||
if mobj:
|
if mobj:
|
||||||
player_url = unescapeHTML(mobj.group(1))
|
player_url = unescapeHTML(mobj.group('url'))
|
||||||
surl = smuggle_url(player_url, {'Referer': url})
|
surl = smuggle_url(player_url, {'Referer': url})
|
||||||
return self.url_result(surl, 'Vimeo')
|
return self.url_result(surl, 'Vimeo')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue