]>
Commit | Line | Data |
---|---|---|
33c7ff86 | 1 | from .common import InfoExtractor |
2 | ||
56a94d8c | 3 | |
33c7ff86 | 4 | class HentaiStigmaIE(InfoExtractor): |
56a94d8c | 5 | _VALID_URL = r'^https?://hentai\.animestigma\.com/(?P<id>[^/]+)' |
33c7ff86 | 6 | _TEST = { |
56a94d8c PH |
7 | 'url': 'http://hentai.animestigma.com/inyouchuu-etsu-bonus/', |
8 | 'md5': '4e3d07422a68a4cc363d8f57c8bf0d23', | |
9 | 'info_dict': { | |
10 | 'id': 'inyouchuu-etsu-bonus', | |
11 | 'ext': 'mp4', | |
611c1dd9 S |
12 | 'title': 'Inyouchuu Etsu Bonus', |
13 | 'age_limit': 18, | |
33c7ff86 | 14 | } |
15 | } | |
16 | ||
17 | def _real_extract(self, url): | |
cf386750 | 18 | video_id = self._match_id(url) |
33c7ff86 | 19 | |
33c7ff86 | 20 | webpage = self._download_webpage(url, video_id) |
21 | ||
56a94d8c | 22 | title = self._html_search_regex( |
cf386750 | 23 | r'<h2[^>]+class="posttitle"[^>]*><a[^>]*>([^<]+)</a>', |
56a94d8c PH |
24 | webpage, 'title') |
25 | wrap_url = self._html_search_regex( | |
cf386750 | 26 | r'<iframe[^>]+src="([^"]+mp4)"', webpage, 'wrapper url') |
33c7ff86 | 27 | wrap_webpage = self._download_webpage(wrap_url, video_id) |
28 | ||
56a94d8c | 29 | video_url = self._html_search_regex( |
cf386750 | 30 | r'file\s*:\s*"([^"]+)"', wrap_webpage, 'video url') |
33c7ff86 | 31 | |
56a94d8c PH |
32 | return { |
33 | 'id': video_id, | |
34 | 'url': video_url, | |
35 | 'title': title, | |
36 | 'age_limit': 18, | |
37 | } |