]> jfr.im git - yt-dlp.git/blame - youtube_dlc/extractor/videodetective.py
Merge branch 'abc' of https://github.com/adrianheine/youtube-dl into adrianheine-abc
[yt-dlp.git] / youtube_dlc / extractor / videodetective.py
CommitLineData
edb7fc54
S
1from __future__ import unicode_literals
2
3d60d337
JMF
3from .common import InfoExtractor
4from .internetvideoarchive import InternetVideoArchiveIE
3d60d337
JMF
5
6
7class VideoDetectiveIE(InfoExtractor):
92519402 8 _VALID_URL = r'https?://(?:www\.)?videodetective\.com/[^/]+/[^/]+/(?P<id>\d+)'
3d60d337
JMF
9
10 _TEST = {
edb7fc54
S
11 'url': 'http://www.videodetective.com/movies/kick-ass-2/194487',
12 'info_dict': {
13 'id': '194487',
14 'ext': 'mp4',
0086726e 15 'title': 'Kick-Ass 2',
c9911067
YCH
16 'description': 'md5:c189d5b7280400630a1d3dd17eaa8d8a',
17 },
18 'params': {
19 # m3u8 download
20 'skip_download': True,
3d60d337
JMF
21 },
22 }
23
24 def _real_extract(self, url):
1cc79574 25 video_id = self._match_id(url)
0086726e
RA
26 query = 'customerid=69249&publishedid=' + video_id
27 return self.url_result(
28 InternetVideoArchiveIE._build_json_url(query),
29 ie=InternetVideoArchiveIE.ie_key())