]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/hentaistigma.py
1 from .common
import InfoExtractor
4 class HentaiStigmaIE(InfoExtractor
):
5 _VALID_URL
= r
'^https?://hentai\.animestigma\.com/(?P<id>[^/]+)'
7 'url': 'http://hentai.animestigma.com/inyouchuu-etsu-bonus/',
8 'md5': '4e3d07422a68a4cc363d8f57c8bf0d23',
10 'id': 'inyouchuu-etsu-bonus',
12 'title': 'Inyouchuu Etsu Bonus',
17 def _real_extract(self
, url
):
18 video_id
= self
._match
_id
(url
)
20 webpage
= self
._download
_webpage
(url
, video_id
)
22 title
= self
._html
_search
_regex
(
23 r
'<h2[^>]+class="posttitle"[^>]*><a[^>]*>([^<]+)</a>',
25 wrap_url
= self
._html
_search
_regex
(
26 r
'<iframe[^>]+src="([^"]+mp4)"', webpage
, 'wrapper url')
27 wrap_webpage
= self
._download
_webpage
(wrap_url
, video_id
)
29 video_url
= self
._html
_search
_regex
(
30 r
'file\s*:\s*"([^"]+)"', wrap_webpage
, 'video url')