forked from MarseyWorld/MarseyWorld
fix reddit domain replacement
parent
1528d91ea3
commit
1115c1a574
|
@ -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=") \
|
||||
|
|
Loading…
Reference in New Issue