it seems to exist both ways

master
Aevann 2024-04-06 08:58:32 +02:00
parent 512c5f73c7
commit 7368cec964
1 changed files with 1 additions and 0 deletions

View File

@ -805,6 +805,7 @@ 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]
url = url.split('/mediaViewer')[0]
return url.rstrip('=')