Browse Source

[wimp] Fix Youtube embeds extraction

Sergey M․ 7 years ago
parent
commit
d253df2f65
1 changed files with 2 additions and 1 deletions
  1. 2 1
      youtube_dl/extractor/wimp.py

+ 2 - 1
youtube_dl/extractor/wimp.py

@@ -36,7 +36,8 @@ class WimpIE(InfoExtractor):
         webpage = self._download_webpage(url, video_id)
         webpage = self._download_webpage(url, video_id)
 
 
         youtube_id = self._search_regex(
         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)
             webpage, 'video URL', default=None)
         if youtube_id:
         if youtube_id:
             return {
             return {