From: Sergey M․ Date: Fri, 27 Oct 2017 15:26:43 +0000 (+0700) Subject: [youtube] Restrict embed regex (#14600) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=f2332f18e66fc5255d11a2762bfaff02f8221251;p=youtube-dl [youtube] Restrict embed regex (#14600) --- 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(?:https?:)?//(?:www\.)?youtube(?:-nocookie)?\.com/ - (?:embed|v|p)/.+?) + (?:embed|v|p)/[0-9A-Za-z_-]{11}.*?) \1''', webpage)] # lazyYT YouTube embed