aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/hentaistigma.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-06-09 17:54:27 -0500
committerJesús <heckyel@hyperbola.info>2021-06-09 17:54:27 -0500
commit27fe903c511691c078942bef5ee9a05a43b15c8f (patch)
tree50f30ab2ec749b965869518c0a28651f8677f0d3 /hypervideo_dl/extractor/hentaistigma.py
downloadhypervideo-27fe903c511691c078942bef5ee9a05a43b15c8f.tar.lz
hypervideo-27fe903c511691c078942bef5ee9a05a43b15c8f.tar.xz
hypervideo-27fe903c511691c078942bef5ee9a05a43b15c8f.zip
initial
Diffstat (limited to 'hypervideo_dl/extractor/hentaistigma.py')
-rw-r--r--hypervideo_dl/extractor/hentaistigma.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/hypervideo_dl/extractor/hentaistigma.py b/hypervideo_dl/extractor/hentaistigma.py
new file mode 100644
index 0000000..86a93de
--- /dev/null
+++ b/hypervideo_dl/extractor/hentaistigma.py
@@ -0,0 +1,39 @@
+from __future__ import unicode_literals
+
+from .common import InfoExtractor
+
+
+class HentaiStigmaIE(InfoExtractor):
+ _VALID_URL = r'^https?://hentai\.animestigma\.com/(?P<id>[^/]+)'
+ _TEST = {
+ 'url': 'http://hentai.animestigma.com/inyouchuu-etsu-bonus/',
+ 'md5': '4e3d07422a68a4cc363d8f57c8bf0d23',
+ 'info_dict': {
+ 'id': 'inyouchuu-etsu-bonus',
+ 'ext': 'mp4',
+ 'title': 'Inyouchuu Etsu Bonus',
+ 'age_limit': 18,
+ }
+ }
+
+ def _real_extract(self, url):
+ video_id = self._match_id(url)
+
+ webpage = self._download_webpage(url, video_id)
+
+ title = self._html_search_regex(
+ r'<h2[^>]+class="posttitle"[^>]*><a[^>]*>([^<]+)</a>',
+ webpage, 'title')
+ wrap_url = self._html_search_regex(
+ r'<iframe[^>]+src="([^"]+mp4)"', webpage, 'wrapper url')
+ wrap_webpage = self._download_webpage(wrap_url, video_id)
+
+ video_url = self._html_search_regex(
+ r'file\s*:\s*"([^"]+)"', wrap_webpage, 'video url')
+
+ return {
+ 'id': video_id,
+ 'url': video_url,
+ 'title': title,
+ 'age_limit': 18,
+ }