mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-27 17:52:02 +02:00
[youtube] Restrict embed regex (#14600)
This commit is contained in:
parent
7c1f419341
commit
f2332f18e6
@ -1391,7 +1391,7 @@ def _extract_urls(webpage):
|
|||||||
)
|
)
|
||||||
(["\'])
|
(["\'])
|
||||||
(?P<url>(?:https?:)?//(?:www\.)?youtube(?:-nocookie)?\.com/
|
(?P<url>(?:https?:)?//(?:www\.)?youtube(?:-nocookie)?\.com/
|
||||||
(?:embed|v|p)/.+?)
|
(?:embed|v|p)/[0-9A-Za-z_-]{11}.*?)
|
||||||
\1''', webpage)]
|
\1''', webpage)]
|
||||||
|
|
||||||
# lazyYT YouTube embed
|
# lazyYT YouTube embed
|
||||||
|
Loading…
Reference in New Issue
Block a user