summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/hentaifoundry.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/hentaifoundry.py')
-rw-r--r--gallery_dl/extractor/hentaifoundry.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/gallery_dl/extractor/hentaifoundry.py b/gallery_dl/extractor/hentaifoundry.py
index c75c90d..7e128a4 100644
--- a/gallery_dl/extractor/hentaifoundry.py
+++ b/gallery_dl/extractor/hentaifoundry.py
@@ -254,6 +254,22 @@ class HentaifoundryFavoriteExtractor(HentaifoundryExtractor):
self.root, self.user)
+class HentaifoundryTagExtractor(HentaifoundryExtractor):
+ """Extractor for tag searches on hentaifoundry.com"""
+ subcategory = "tag"
+ directory_fmt = ("{category}", "{search_tags}")
+ archive_fmt = "t_{search_tags}_{index}"
+ pattern = BASE_PATTERN + r"/pictures/tagged/([^/?#]+)"
+ example = "https://www.hentai-foundry.com/pictures/tagged/TAG"
+
+ def __init__(self, match):
+ HentaifoundryExtractor.__init__(self, match)
+ self.page_url = "{}/pictures/tagged/{}".format(self.root, self.user)
+
+ def metadata(self):
+ return {"search_tags": self.user}
+
+
class HentaifoundryRecentExtractor(HentaifoundryExtractor):
"""Extractor for 'Recent Pictures' on hentaifoundry.com"""
subcategory = "recent"