diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-06-11 02:40:17 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-06-11 02:40:17 +0700 |
commit | d253df2f65b15d1e3bb5e9703b05d98532337c9b (patch) | |
tree | e4ec62bcd4ba73b208ee7bf4f6369b03d294cc64 /youtube_dl/extractor/wimp.py | |
parent | e8c6afc16877a6b975895bf236c8cdaff01733cd (diff) |
[wimp] Fix Youtube embeds extraction
Diffstat (limited to 'youtube_dl/extractor/wimp.py')
-rw-r--r-- | youtube_dl/extractor/wimp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/wimp.py b/youtube_dl/extractor/wimp.py index c022fb33e..3dab9145b 100644 --- a/youtube_dl/extractor/wimp.py +++ b/youtube_dl/extractor/wimp.py @@ -36,7 +36,8 @@ class WimpIE(InfoExtractor): webpage = self._download_webpage(url, video_id) youtube_id = self._search_regex( - r"videoId\s*:\s*[\"']([0-9A-Za-z_-]{11})[\"']", + (r"videoId\s*:\s*[\"']([0-9A-Za-z_-]{11})[\"']", + r'data-id=["\']([0-9A-Za-z_-]{11})'), webpage, 'video URL', default=None) if youtube_id: return { |