Skip to content

Commit

Permalink
[nozomi] Extend default archive-fmt for Tag and Search Extractor (#1529)
Browse files Browse the repository at this point in the history
Closes #1523
  • Loading branch information
Hrxn authored May 4, 2021
1 parent bc868e7 commit e13cae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/nozomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class NozomiTagExtractor(NozomiExtractor):
"""Extractor for posts from tag searches on nozomi.la"""
subcategory = "tag"
directory_fmt = ("{category}", "{search_tags}")
archive_fmt = "t_{search_tags}_{postid}"
archive_fmt = "t_{search_tags}_{postid}_{dataid}"
pattern = r"(?:https?://)?nozomi\.la/tag/([^/?#]+)-(\d+)\."
test = ("https://nozomi.la/tag/3:1_aspect_ratio-1.html", {
"pattern": r"^https://i.nozomi.la/\w/\w\w/\w+\.\w+$",
Expand All @@ -180,7 +180,7 @@ class NozomiSearchExtractor(NozomiExtractor):
"""Extractor for search results on nozomi.la"""
subcategory = "search"
directory_fmt = ("{category}", "{search_tags:J }")
archive_fmt = "t_{search_tags}_{postid}"
archive_fmt = "t_{search_tags}_{postid}_{dataid}"
pattern = r"(?:https?://)?nozomi\.la/search\.html\?q=([^&#]+)"
test = ("https://nozomi.la/search.html?q=hibiscus%203:4_ratio#1", {
"count": ">= 5",
Expand Down

0 comments on commit e13cae1

Please sign in to comment.