]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/makertv.py
2 from __future__
import unicode_literals
4 from .common
import InfoExtractor
7 class MakerTVIE(InfoExtractor
):
8 _VALID_URL
= r
'https?://(?:(?:www\.)?maker\.tv/(?:[^/]+/)*video|makerplayer\.com/embed/maker)/(?P<id>[a-zA-Z0-9]{12})'
10 'url': 'http://www.maker.tv/video/Fh3QgymL9gsc',
11 'md5': 'ca237a53a8eb20b6dc5bd60564d4ab3e',
15 'title': 'Maze Runner: The Scorch Trials Official Movie Review',
16 'description': 'md5:11ff3362d7ef1d679fdb649f6413975a',
17 'upload_date': '20150918',
18 'timestamp': 1442549540,
22 def _real_extract(self
, url
):
23 video_id
= self
._match
_id
(url
)
24 webpage
= self
._download
_webpage
(url
, video_id
)
25 jwplatform_id
= self
._search
_regex
(r
'jw_?id="([^"]+)"', webpage
, 'jwplatform id')
28 '_type': 'url_transparent',
30 'url': 'jwplatform:%s' % jwplatform_id
,
31 'ie_key': 'JWPlatform',