1 from __future__ import unicode_literals
3 from .common import InfoExtractor
6 class HentaiStigmaIE(InfoExtractor):
7 _VALID_URL = r'^https?://hentai\.animestigma\.com/(?P<id>[^/]+)'
9 'url': 'http://hentai.animestigma.com/inyouchuu-etsu-bonus/',
10 'md5': '4e3d07422a68a4cc363d8f57c8bf0d23',
12 'id': 'inyouchuu-etsu-bonus',
14 'title': 'Inyouchuu Etsu Bonus',
19 def _real_extract(self, url):
20 video_id = self._match_id(url)
22 webpage = self._download_webpage(url, video_id)
24 title = self._html_search_regex(
25 r'<h2[^>]+class="posttitle"[^>]*><a[^>]*>([^<]+)</a>',
27 wrap_url = self._html_search_regex(
28 r'<iframe[^>]+src="([^"]+mp4)"', webpage, 'wrapper url')
29 wrap_webpage = self._download_webpage(wrap_url, video_id)
31 video_url = self._html_search_regex(
32 r'file\s*:\s*"([^"]+)"', wrap_webpage, 'video url')