forked from MarseyWorld/MarseyWorld
use 200w_d.webp for giphy
parent
53003bb53e
commit
663541d0ce
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue