From 0271d4488fe514e9eaa1b70521db810276669f7d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 5 Sep 2022 03:43:07 +0200 Subject: [PATCH] do this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2658067?context=8#context --- files/helpers/sanitize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index db2bdc43b5..22a51e60f9 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -438,7 +438,8 @@ def normalize_url(url): .replace("https://streamable.com/", "https://streamable.com/e/") \ .replace("https://streamable.com/e/e/", "https://streamable.com/e/") \ .replace("https://search.marsey.cat/#", "https://camas.unddit.com/#") \ - .replace("https://imgur.com/", "https://i.imgur.com/") + .replace("https://imgur.com/", "https://i.imgur.com/") \ + .replace("https://kiwifarms.net/", "https://kiwifarms.ru/") url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=high', url) url = giphy_regex.sub(r'\1.webp', url)