mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[generic] Support data-video-url for YouTube embeds (Fixes #2862)
This commit is contained in:
parent
4ea5c7b70d
commit
3442b30ab2
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ def _real_extract(self, url):
|
|||
|
||||
# Look for embedded YouTube player
|
||||
matches = re.findall(r'''(?x)
|
||||
(?:<iframe[^>]+?src=|embedSWF\(\s*)
|
||||
(?:<iframe[^>]+?src=|data-video-url=|embedSWF\(\s*)
|
||||
(["\'])(?P<url>(?:https?:)?//(?:www\.)?youtube\.com/
|
||||
(?:embed|v)/.+?)
|
||||
\1''', webpage)
|
||||
|
|
Loading…
Reference in a new issue