fix giphy framerate

master
Aevann 2022-12-25 06:10:54 +02:00
parent dc2c2fdc74
commit a122986111
3 changed files with 6 additions and 6 deletions

View File

@ -234,8 +234,8 @@ function expandImage(url) {
url = e.target.dataset.src
if (!url) url = e.target.src
}
document.getElementById("desktop-expanded-image").src = url.replace("200w_d.webp", "giphy.webp");
document.getElementById("desktop-expanded-image-wrap-link").href = url.replace("200w_d.webp", "giphy.webp");
document.getElementById("desktop-expanded-image").src = url.replace("200w.webp", "giphy.webp");
document.getElementById("desktop-expanded-image-wrap-link").href = url.replace("200w.webp", "giphy.webp");
bootstrap.Modal.getOrCreateInstance(document.getElementById('expandImageModal')).show();
};

File diff suppressed because one or more lines are too long

View File

@ -472,8 +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", "/200w_d.webp") \
.replace("/giphy.webp", "/200w_d.webp") \
.replace("/giphy.gif", "/200w.webp") \
.replace("/giphy.webp", "/200w.webp") \
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
url = giphy_regex.sub(r'\1.webp', url)