[nozomi] URL encode search tags (#8328)

This commit is contained in:
Mike Fährmann
2025-10-02 09:19:01 +02:00
parent 5672a4181c
commit 4220cd42c0
2 changed files with 11 additions and 1 deletions

View File

@@ -173,7 +173,7 @@ class NozomiSearchExtractor(NozomiExtractor):
for tag in self.tags:
(negative if tag[0] == "-" else positive).append(
tag.replace("/", ""))
text.quote(tag.replace("/", "")))
for tag in positive:
ids = nozomi("nozomi/" + tag)

View File

@@ -108,4 +108,14 @@ __tests__ = (
"#count" : range(5, 10),
},
{
"#url" : "https://nozomi.la/search.html?q=musume_janakute_mama_ga_sukinano!?",
"#comment" : "404 error due to unquoted '?' in search tag (#8328)",
"#class" : nozomi.NozomiSearchExtractor,
"#range" : "1-3",
"#count" : 3,
"search_tags": ["musume_janakute_mama_ga_sukinano!?"],
},
)