Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost

master
Aevann1 2022-09-12 17:34:26 +00:00
commit 8613b867a5
4 changed files with 3 additions and 4 deletions

View File

@ -783,6 +783,7 @@
{"name":"tracemad","class":"Sets"}, {"name":"tracemad","class":"Sets"},
{"name":"tracesad","class":"Sets"}, {"name":"tracesad","class":"Sets"},
{"name":"grillcastyes", "tags":["podcast", "chad"],"class":"Misc"},
{"name":"ivoted", "tags":["democracy", "spider"],"class":"Misc"}, {"name":"ivoted", "tags":["democracy", "spider"],"class":"Misc"},
{"name":"hapyday", "tags":["happyday", "wholesome", "smile"],"class":"Misc"}, {"name":"hapyday", "tags":["happyday", "wholesome", "smile"],"class":"Misc"},
{"name":"froth", "tags":["froth", "seethe", "angry", "ugh", "frothing", "sneed"],"class":"Misc"}, {"name":"froth", "tags":["froth", "seethe", "angry", "ugh", "frothing", "sneed"],"class":"Misc"},

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -1010,8 +1010,7 @@ approved_embed_hosts = {
'substackcdn.com', 'substackcdn.com',
'9gag.com', '9gag.com',
'ifunny.co', 'ifunny.co',
'wixmp.com', 'wixmp.com'
'marsey.cat'
} }

View File

@ -446,8 +446,7 @@ 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)