[ie/wistia] Support password-protected videos (#11100)
[yt-dlp3.git] / yt_dlp / extractor / videodetective.py
blob7928a41c2153c775971e1b2eecfb71d979b5a19f
1 from .common import InfoExtractor
2 from .internetvideoarchive import InternetVideoArchiveIE
5 class VideoDetectiveIE(InfoExtractor):
6 _VALID_URL = r'https?://(?:www\.)?videodetective\.com/[^/]+/[^/]+/(?P<id>\d+)'
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',
16 'params': {
17 # m3u8 download
18 'skip_download': True,
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())