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