From 1115c1a574971188feef7eccd29a21335597fcb8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 4 Jul 2022 05:08:33 +0200 Subject: [PATCH] fix reddit domain replacement --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 2acc9d777..28b03a108 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -399,7 +399,7 @@ def filter_emojis_only(title, edit=False, graceful=False): else: return title.replace('\n','').strip() def normalize_url(url): - url = reddit_domain_regex.sub(r'\1https://old.reddit.com/\2/', url) + url = reddit_domain_regex.sub(r'\1https://old.reddit.com/\3/', url) url = url.replace("https://youtu.be/", "https://youtube.com/watch?v=") \ .replace("https://music.youtube.com/watch?v=", "https://youtube.com/watch?v=") \