fix reddit domain replacement

master
Aevann1 2022-07-04 05:08:33 +02:00
parent 1528d91ea3
commit 1115c1a574
1 changed files with 1 additions and 1 deletions

View File

@ -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=") \