Skip to content

Commit

Permalink
[hitomi] recognize 'imageset' gallery URLs (#4756)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Nov 2, 2023
1 parent 91e20eb commit fc8f86b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/hitomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
7 changes: 7 additions & 0 deletions test/results/hitomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@
"#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"),
Expand Down

0 comments on commit fc8f86b

Please sign in to comment.