]>
Commit | Line | Data |
---|---|---|
1 | from .common import InfoExtractor | |
2 | from .internetvideoarchive import InternetVideoArchiveIE | |
3 | ||
4 | ||
5 | class VideoDetectiveIE(InfoExtractor): | |
6 | _VALID_URL = r'https?://(?:www\.)?videodetective\.com/[^/]+/[^/]+/(?P<id>\d+)' | |
7 | ||
8 | _TEST = { | |
9 | 'url': 'http://www.videodetective.com/movies/kick-ass-2/194487', | |
10 | 'info_dict': { | |
11 | 'id': '194487', | |
12 | 'ext': 'mp4', | |
13 | 'title': 'Kick-Ass 2', | |
14 | 'description': 'md5:c189d5b7280400630a1d3dd17eaa8d8a', | |
15 | }, | |
16 | 'params': { | |
17 | # m3u8 download | |
18 | 'skip_download': True, | |
19 | }, | |
20 | } | |
21 | ||
22 | def _real_extract(self, url): | |
23 | video_id = self._match_id(url) | |
24 | query = 'customerid=69249&publishedid=' + video_id | |
25 | return self.url_result( | |
26 | InternetVideoArchiveIE._build_json_url(query), | |
27 | ie=InternetVideoArchiveIE.ie_key()) |