forked from rDrama/rDrama
do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/6012747#context
parent
9420653a07
commit
b8e1e176d0
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue