forked from MarseyWorld/MarseyWorld
replace giphy.gif with giphy.webp
parent
108e7781ea
commit
366f445f2e
|
@ -471,7 +471,8 @@ def normalize_url(url):
|
||||||
.replace("https://imgur.com/", "https://i.imgur.com/") \
|
.replace("https://imgur.com/", "https://i.imgur.com/") \
|
||||||
.replace("https://nitter.net/", "https://twitter.com/") \
|
.replace("https://nitter.net/", "https://twitter.com/") \
|
||||||
.replace("https://nitter.42l.fr/", "https://twitter.com/") \
|
.replace("https://nitter.42l.fr/", "https://twitter.com/") \
|
||||||
.replace("https://nitter.lacontrevoie.fr/", "https://twitter.com/")
|
.replace("https://nitter.lacontrevoie.fr/", "https://twitter.com/") \
|
||||||
|
.replace("/giphy.gif", "/giphy.webp")
|
||||||
|
|
||||||
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
|
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
|
||||||
url = giphy_regex.sub(r'\1.webp', url)
|
url = giphy_regex.sub(r'\1.webp', url)
|
||||||
|
|
Loading…
Reference in New Issue