use 200w_d.webp for giphy

master
Aevann 2022-12-25 03:22:17 +02:00
parent 53003bb53e
commit 663541d0ce
1 changed files with 2 additions and 1 deletions

View File

@ -472,7 +472,8 @@ def normalize_url(url):
.replace("https://nitter.net/", "https://twitter.com/") \
.replace("https://nitter.42l.fr/", "https://twitter.com/") \
.replace("https://nitter.lacontrevoie.fr/", "https://twitter.com/") \
.replace("/giphy.gif", "/giphy.webp")
.replace("/giphy.gif", "/200w_d.webp") \
.replace("/giphy.webp", "/200w_d.webp") \
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
url = giphy_regex.sub(r'\1.webp', url)