Aevann 2024-02-01 00:13:21 +02:00
parent b27d9f074d
commit 4f76967a9f
1 changed files with 0 additions and 6 deletions

View File

@ -756,9 +756,6 @@ def is_whitelisted(domain, k):
def normalize_url(url):
if 'wikipedia.org/wiki/' not in url:
url = unquote(url)
url = reddit_domain_regex.sub(r'\1https://old.reddit.com/\5', url)
url = url.replace("https://music.youtube.com", "https://youtube.com") \
@ -824,9 +821,6 @@ def normalize_url(url):
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
if 'wikipedia.org/wiki/' not in url:
url = unquote(url)
return url.rstrip('=')
def normalize_url_gevent(url):