unquote url after normalizing too (some forums have the path inside a query parameter and quoting breaks their links)

https://rdrama.net/search/posts/?q=%3Fforums
pull/217/head
Aevann 2023-11-16 15:14:39 +02:00
parent 0e1cd701a2
commit 39123997f0
1 changed files with 2 additions and 0 deletions

View File

@ -797,6 +797,8 @@ def normalize_url(url):
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
url = unquote(url).rstrip('=')
return url
def normalize_url_gevent(url):