mirror of https://github.com/yt-dlp/yt-dlp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
865 B
Python
28 lines
865 B
Python
![]()
11 years ago
|
from .common import InfoExtractor
|
||
|
from .internetvideoarchive import InternetVideoArchiveIE
|
||
|
|
||
|
|
||
|
class VideoDetectiveIE(InfoExtractor):
|
||
![]()
8 years ago
|
_VALID_URL = r'https?://(?:www\.)?videodetective\.com/[^/]+/[^/]+/(?P<id>\d+)'
|
||
![]()
11 years ago
|
|
||
|
_TEST = {
|
||
![]()
11 years ago
|
'url': 'http://www.videodetective.com/movies/kick-ass-2/194487',
|
||
|
'info_dict': {
|
||
|
'id': '194487',
|
||
|
'ext': 'mp4',
|
||
![]()
5 years ago
|
'title': 'Kick-Ass 2',
|
||
![]()
8 years ago
|
'description': 'md5:c189d5b7280400630a1d3dd17eaa8d8a',
|
||
|
},
|
||
|
'params': {
|
||
|
# m3u8 download
|
||
|
'skip_download': True,
|
||
![]()
11 years ago
|
},
|
||
|
}
|
||
|
|
||
|
def _real_extract(self, url):
|
||
![]()
10 years ago
|
video_id = self._match_id(url)
|
||
![]()
5 years ago
|
query = 'customerid=69249&publishedid=' + video_id
|
||
|
return self.url_result(
|
||
|
InternetVideoArchiveIE._build_json_url(query),
|
||
|
ie=InternetVideoArchiveIE.ie_key())
|