Aevann1 2022-09-05 03:43:07 +02:00
parent 531525a254
commit 0271d4488f
1 changed files with 2 additions and 1 deletions

View File

@ -438,7 +438,8 @@ def normalize_url(url):
.replace("https://streamable.com/", "https://streamable.com/e/") \ .replace("https://streamable.com/", "https://streamable.com/e/") \
.replace("https://streamable.com/e/e/", "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://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 = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=high', url)
url = giphy_regex.sub(r'\1.webp', url) url = giphy_regex.sub(r'\1.webp', url)