diff --git a/docs/supportedsites.rst b/docs/supportedsites.rst index 545ec683..0e932c7d 100644 --- a/docs/supportedsites.rst +++ b/docs/supportedsites.rst @@ -48,7 +48,7 @@ HentaiFox https://hentaifox.com/ Galleries, Search Resul HentaiHand https://hentaihand.com/ Galleries, Search Results, Tag Searches HentaiHere https://hentaihere.com/ Chapters, Manga Hentainexus https://hentainexus.com/ Galleries, Search Results -Hiperdex https://hiperdex.com/ Chapters, Manga +Hiperdex https://hiperdex.com/ Artists, Chapters, Manga Hitomi.la https://hitomi.la/ Galleries Hypnohub https://hypnohub.net/ Pools, Popular Images, Posts, Tag Searches Idol Complex https://idol.sankakucomplex.com/ Pools, Posts, Tag Searches Optional diff --git a/gallery_dl/extractor/hiperdex.py b/gallery_dl/extractor/hiperdex.py index ea8fda8d..85cfe493 100644 --- a/gallery_dl/extractor/hiperdex.py +++ b/gallery_dl/extractor/hiperdex.py @@ -139,3 +139,30 @@ class HiperdexMangaExtractor(HiperdexBase, MangaExtractor): results.append((url, self.chapter_data(chapter))) return results + + +class HiperdexArtistExtractor(HiperdexBase, MangaExtractor): + """Extractor for an artists's manga on hiperdex.com""" + subcategory = "artist" + categorytransfer = False + chapterclass = HiperdexMangaExtractor + reverse = False + pattern = (r"(?:https?://)?(?:www\.)?hiperdex\.com" + r"(/manga-a(?:rtist|uthor)/([^/?&#]+))") + test = ( + ("https://hiperdex.com/manga-artist/beck-ho-an/"), + ("https://hiperdex.com/manga-author/viagra/", { + "pattern": HiperdexMangaExtractor.pattern, + "count": ">= 6", + }), + ) + + def __init__(self, match): + MangaExtractor.__init__(self, match, self.root + match.group(1) + "/") + + def chapters(self, page): + results = [] + for info in text.extract_iter(page, 'id="manga-item-', '