summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/hentaihere.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-11-22 04:28:38 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2022-11-22 04:28:38 -0500
commit7af5cc29d1c02d20a6890b7b7ba78ab41532a763 (patch)
tree4f0366e5653074c7eb31ac7ca59a1ee55f2d736e /gallery_dl/extractor/hentaihere.py
parente59d46ecda74190381b1d2725b0bd9df5c0be8d8 (diff)
New upstream version 1.24.0.upstream/1.24.0
Diffstat (limited to 'gallery_dl/extractor/hentaihere.py')
-rw-r--r--gallery_dl/extractor/hentaihere.py35
1 files changed, 20 insertions, 15 deletions
diff --git a/gallery_dl/extractor/hentaihere.py b/gallery_dl/extractor/hentaihere.py
index c3e6d76..38ec77c 100644
--- a/gallery_dl/extractor/hentaihere.py
+++ b/gallery_dl/extractor/hentaihere.py
@@ -30,19 +30,24 @@ class HentaihereChapterExtractor(HentaihereBase, ChapterExtractor):
"keyword": "0207d20eea3a15d2a8d1496755bdfa49de7cfa9d",
}),
("https://hentaihere.com/m/S23048/1.5/1/", {
- "author": "Shinozuka Yuuji",
- "chapter": 1,
- "chapter_id": 80186,
- "chapter_minor": ".5",
+ "pattern": r"https://hentaicdn\.com/hentai"
+ r"/23048/1\.5/ccdn00\d+\.jpg",
"count": 32,
- "lang": "en",
- "language": "English",
- "manga": "High School Slut's Love Consultation",
- "manga_id": 23048,
- "page": int,
- "title": "High School Slut's Love Consultation + "
- "Girlfriend [Full Color]",
- "type": "Original",
+ "keyword": {
+ "author": "Shinozuka Yuuji",
+ "chapter": 1,
+ "chapter_id": 80186,
+ "chapter_minor": ".5",
+ "count": 32,
+ "lang": "en",
+ "language": "English",
+ "manga": "High School Slut's Love Consultation",
+ "manga_id": 23048,
+ "page": int,
+ "title": "High School Slut's Love Consultation + "
+ "Girlfriend [Full Color]",
+ "type": "Original",
+ },
}),
)
@@ -52,8 +57,8 @@ class HentaihereChapterExtractor(HentaihereBase, ChapterExtractor):
ChapterExtractor.__init__(self, match, url)
def metadata(self, page):
- title = text.extract(page, "<title>", "</title>")[0]
- chapter_id = text.extract(page, 'report/C', '"')[0]
+ title = text.extr(page, "<title>", "</title>")
+ chapter_id = text.extr(page, 'report/C', '"')
chapter, sep, minor = self.chapter.partition(".")
pattern = r"Page 1 \| (.+) \(([^)]+)\) - Chapter \d+: (.+) by (.+) at "
match = re.match(pattern, title)
@@ -72,7 +77,7 @@ class HentaihereChapterExtractor(HentaihereBase, ChapterExtractor):
@staticmethod
def images(page):
- images = text.extract(page, "var rff_imageList = ", ";")[0]
+ images = text.extr(page, "var rff_imageList = ", ";")
return [
("https://hentaicdn.com/hentai" + part, None)
for part in json.loads(images)