]>
Commit | Line | Data |
---|---|---|
1bad50ec | 1 | from .common import InfoExtractor |
2 | ||
3 | ||
4 | class CableAVIE(InfoExtractor): | |
5 | _VALID_URL = r'https://cableav\.tv/(?P<id>[a-zA-Z0-9]+)' | |
6 | _TESTS = [{ | |
7 | 'url': 'https://cableav.tv/lS4iR9lWjN8/', | |
8 | 'md5': '7e3fe5e49d61c4233b7f5b0f69b15e18', | |
9 | 'info_dict': { | |
10 | 'id': 'lS4iR9lWjN8', | |
11 | 'ext': 'mp4', | |
12 | 'title': '國產麻豆AV 叮叮映畫 DDF001 情欲小說家 - CableAV', | |
13 | 'description': '國產AV 480p, 720p 国产麻豆AV 叮叮映画 DDF001 情欲小说家', | |
14 | 'thumbnail': r're:^https?://.*\.jpg$', | |
15 | } | |
16 | }] | |
17 | ||
18 | def _real_extract(self, url): | |
19 | video_id = self._match_id(url) | |
20 | webpage = self._download_webpage(url, video_id) | |
21 | ||
22 | video_url = self._og_search_video_url(webpage, secure=False) | |
23 | ||
24 | formats = self._extract_m3u8_formats(video_url, video_id, 'mp4') | |
1bad50ec | 25 | |
26 | return { | |
27 | 'id': video_id, | |
28 | 'title': self._og_search_title(webpage), | |
29 | 'description': self._og_search_description(webpage), | |
30 | 'thumbnail': self._og_search_thumbnail(webpage), | |
31 | 'formats': formats, | |
32 | } |