From fc8f86bf24d6216d796ac410821b2cedb680ce57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 2 Nov 2023 15:29:44 +0100 Subject: [PATCH] [hitomi] recognize 'imageset' gallery URLs (#4756) --- gallery_dl/extractor/hitomi.py | 2 +- test/results/hitomi.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/hitomi.py b/gallery_dl/extractor/hitomi.py index bc49ca31..88f57087 100644 --- a/gallery_dl/extractor/hitomi.py +++ b/gallery_dl/extractor/hitomi.py @@ -21,7 +21,7 @@ class HitomiGalleryExtractor(GalleryExtractor): category = "hitomi" root = "https://hitomi.la" pattern = (r"(?:https?://)?hitomi\.la" - r"/(?:manga|doujinshi|cg|gamecg|galleries|reader)" + r"/(?:manga|doujinshi|cg|gamecg|imageset|galleries|reader)" r"/(?:[^/?#]+-)?(\d+)") example = "https://hitomi.la/manga/TITLE-867789.html" diff --git a/test/results/hitomi.py b/test/results/hitomi.py index 10e94135..9039525c 100644 --- a/test/results/hitomi.py +++ b/test/results/hitomi.py @@ -92,6 +92,13 @@ __tests__ = ( "#class" : hitomi.HitomiGalleryExtractor, }, +{ + "#url" : "https://hitomi.la/imageset/867789.html", + "#comment" : "/imageset/ gallery (#4756)", + "#category": ("", "hitomi", "gallery"), + "#class" : hitomi.HitomiGalleryExtractor, +}, + { "#url" : "https://hitomi.la/reader/867789.html", "#category": ("", "hitomi", "gallery"),