forked from rDrama/rDrama
1
0
Fork 0
Aevann 2024-02-28 21:36:24 +02:00
parent 9420653a07
commit b8e1e176d0
1 changed files with 3 additions and 0 deletions

View File

@ -789,6 +789,9 @@ def normalize_url(url):
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
if url.startswith('https://twitter.com/'):
url = url.split('/mediaviewer')[0]
return url.rstrip('=')
def normalize_url_gevent(url):