[nozomi] URL encode search tags (#8328)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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!?"],
|
||||
},
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user