From a4fd620a25e5003b04abe9cdec4ff6c16a905b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 27 Apr 2020 20:42:31 +0200 Subject: [PATCH] [hiperdex] revert domain back to hiperdex.com --- docs/supportedsites.rst | 2 +- gallery_dl/extractor/hiperdex.py | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/supportedsites.rst b/docs/supportedsites.rst index 6b981cce..c960b4d9 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.net/ Artists, Chapters, Manga +Hiperdex https://hiperdex.com/ Artists, Chapters, Manga Hitomi.la https://hitomi.la/ Galleries, Tag Searches 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 6ee6bb92..38834459 100644 --- a/gallery_dl/extractor/hiperdex.py +++ b/gallery_dl/extractor/hiperdex.py @@ -6,7 +6,7 @@ # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. -"""Extractors for https://hiperdex.net/""" +"""Extractors for https://hiperdex.com/""" from .common import ChapterExtractor, MangaExtractor from .. import text @@ -17,7 +17,7 @@ import re class HiperdexBase(): """Base class for hiperdex extractors""" category = "hiperdex" - root = "https://hiperdex.net" + root = "https://hiperdex.com" @memcache(keyarg=1) def manga_data(self, manga, page=None): @@ -60,12 +60,12 @@ class HiperdexBase(): class HiperdexChapterExtractor(HiperdexBase, ChapterExtractor): - """Extractor for manga chapters from hiperdex.net""" - pattern = (r"(?:https?://)?(?:www\.)?hiperdex\.(?:net|com)" + """Extractor for manga chapters from hiperdex.com""" + pattern = (r"(?:https?://)?(?:www\.)?hiperdex\.(?:com|net)" r"(/manga/([^/?&#]+)/([^/?&#]+))") test = ( - ("https://hiperdex.net/manga/domestic-na-kanojo/154-5/", { - "pattern": r"https://hiperdex.net/wp-content/uploads" + ("https://hiperdex.com/manga/domestic-na-kanojo/154-5/", { + "pattern": r"https://hiperdex.com/wp-content/uploads" r"/WP-manga/data/manga_\w+/[0-9a-f]{32}/\d+\.webp", "count": 9, "keyword": { @@ -81,7 +81,7 @@ class HiperdexChapterExtractor(HiperdexBase, ChapterExtractor): "type" : "Manga", }, }), - ("https://hiperdex.com/manga/domestic-na-kanojo/154-5/"), + ("https://hiperdex.net/manga/domestic-na-kanojo/154-5/"), ) def __init__(self, match): @@ -100,12 +100,12 @@ class HiperdexChapterExtractor(HiperdexBase, ChapterExtractor): class HiperdexMangaExtractor(HiperdexBase, MangaExtractor): - """Extractor for manga from hiperdex.net""" + """Extractor for manga from hiperdex.com""" chapterclass = HiperdexChapterExtractor - pattern = (r"(?:https?://)?(?:www\.)?hiperdex\.(?:net|com)" + pattern = (r"(?:https?://)?(?:www\.)?hiperdex\.(?:com|net)" r"(/manga/([^/?&#]+))/?$") test = ( - ("https://hiperdex.net/manga/youre-not-that-special/", { + ("https://hiperdex.com/manga/youre-not-that-special/", { "count": 51, "pattern": HiperdexChapterExtractor.pattern, "keyword": { @@ -122,7 +122,7 @@ class HiperdexMangaExtractor(HiperdexBase, MangaExtractor): "type" : "Manhwa", }, }), - ("https://hiperdex.com/manga/youre-not-that-special/"), + ("https://hiperdex.net/manga/youre-not-that-special/"), ) def __init__(self, match): @@ -149,16 +149,16 @@ class HiperdexMangaExtractor(HiperdexBase, MangaExtractor): class HiperdexArtistExtractor(HiperdexBase, MangaExtractor): - """Extractor for an artists's manga on hiperdex.net""" + """Extractor for an artists's manga on hiperdex.com""" subcategory = "artist" categorytransfer = False chapterclass = HiperdexMangaExtractor reverse = False - pattern = (r"(?:https?://)?(?:www\.)?hiperdex\.(?:net|com)" + pattern = (r"(?:https?://)?(?:www\.)?hiperdex\.(?:com|net)" r"(/manga-a(?:rtist|uthor)/([^/?&#]+))") test = ( - ("https://hiperdex.net/manga-artist/beck-ho-an/"), ("https://hiperdex.com/manga-artist/beck-ho-an/"), + ("https://hiperdex.net/manga-artist/beck-ho-an/"), ("https://hiperdex.com/manga-author/viagra/", { "pattern": HiperdexMangaExtractor.pattern, "count": ">= 6",