[wimp] Fix Youtube embeds extraction
authorSergey M․ <dstftw@gmail.com>
Sun, 10 Jun 2018 19:40:17 +0000 (02:40 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 10 Jun 2018 19:40:17 +0000 (02:40 +0700)
youtube_dl/extractor/wimp.py

index c022fb33e94ef7f9e6f0e90d73300f866e8ffc76..3dab9145ba9c57bfd1d78a90a847761c23f0d8a8 100644 (file)
@@ -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 {