From 4f76967a9fcfef972c44fa39686a36da60f1b107 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 1 Feb 2024 00:13:21 +0200 Subject: [PATCH] fix this https://watchpeopledie.tv/post/118570 --- files/helpers/sanitize.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 180cd8a86..137277c3f 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -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):