aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-10-27 22:26:43 +0700
committerSergey M․ <dstftw@gmail.com>2017-10-27 22:26:43 +0700
commitf2332f18e66fc5255d11a2762bfaff02f8221251 (patch)
tree31137c230ace64af68ca9c37cd1000e806eb5af9 /youtube_dl
parent7c1f419341ac2dec123eaa0075212edc6af3302b (diff)
[youtube] Restrict embed regex (#14600)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 5aef555fb..9943dddc1 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1391,7 +1391,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
)
(["\'])
(?P<url>(?:https?:)?//(?:www\.)?youtube(?:-nocookie)?\.com/
- (?:embed|v|p)/.+?)
+ (?:embed|v|p)/[0-9A-Za-z_-]{11}.*?)
\1''', webpage)]
# lazyYT YouTube embed