diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-10-27 22:26:43 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-10-27 22:26:43 +0700 |
commit | f2332f18e66fc5255d11a2762bfaff02f8221251 (patch) | |
tree | 31137c230ace64af68ca9c37cd1000e806eb5af9 /youtube_dl | |
parent | 7c1f419341ac2dec123eaa0075212edc6af3302b (diff) |
[youtube] Restrict embed regex (#14600)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
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 |