]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/wimp.py
Update changelog.
[youtubedl] / youtube_dl / extractor / wimp.py
index 54eb5142793827f8b733592d22b979d326593bee..3dab9145ba9c57bfd1d78a90a847761c23f0d8a8 100644 (file)
@@ -1,10 +1,10 @@
 from __future__ import unicode_literals
 
 from __future__ import unicode_literals
 
+from .common import InfoExtractor
 from .youtube import YoutubeIE
 from .youtube import YoutubeIE
-from .jwplatform import JWPlatformBaseIE
 
 
 
 
-class WimpIE(JWPlatformBaseIE):
+class WimpIE(InfoExtractor):
     _VALID_URL = r'https?://(?:www\.)?wimp\.com/(?P<id>[^/]+)'
     _TESTS = [{
         'url': 'http://www.wimp.com/maru-is-exhausted/',
     _VALID_URL = r'https?://(?:www\.)?wimp\.com/(?P<id>[^/]+)'
     _TESTS = [{
         'url': 'http://www.wimp.com/maru-is-exhausted/',
@@ -36,7 +36,8 @@ class WimpIE(JWPlatformBaseIE):
         webpage = self._download_webpage(url, video_id)
 
         youtube_id = self._search_regex(
         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 {
             webpage, 'video URL', default=None)
         if youtube_id:
             return {