]>
jfr.im git - yt-dlp.git/blob - youtube_dl/extractor/wimp.py
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
8 class WimpIE(InfoExtractor
):
9 _VALID_URL
= r
'http://(?:www\.)?wimp\.com/([^/]+)/'
11 'url': 'http://www.wimp.com/maruexhausted/',
12 'md5': 'f1acced123ecb28d9bb79f2479f2b6a1',
14 'id': 'maruexhausted',
16 'title': 'Maru is exhausted.',
17 'description': 'md5:57e099e857c0a4ea312542b684a869b8',
21 def _real_extract(self
, url
):
22 mobj
= re
.match(self
._VALID
_URL
, url
)
23 video_id
= mobj
.group(1)
24 webpage
= self
._download
_webpage
(url
, video_id
)
25 video_url
= self
._search
_regex
(
26 r
's1\.addVariable\("file",\s*"([^"]+)"\);', webpage
, 'video URL')
31 'title': self
._og
_search
_title
(webpage
),
32 'thumbnail': self
._og
_search
_thumbnail
(webpage
),
33 'description': self
._og
_search
_description
(webpage
),