1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[furaffinity] unquote search queries (#1958)

instead of unescape
(unquote -> url params, unescape -> html entities)
This commit is contained in:
Mike Fährmann 2021-10-17 20:48:08 +02:00
parent 8d676151b7
commit 975e0a4fe0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -250,7 +250,7 @@ class FuraffinitySearchExtractor(FuraffinityExtractor):
FuraffinityExtractor.__init__(self, match)
self.query = text.parse_query(match.group(2))
if self.user and "q" not in self.query:
self.query["q"] = text.unescape(self.user)
self.query["q"] = text.unquote(self.user)
def metadata(self):
return {"search": self.query.get("q")}