forked from rDrama/rDrama
fgfg
parent
5fc810e49a
commit
bb8dffcad9
|
@ -88,8 +88,8 @@ def sanitize(sanitized):
|
||||||
|
|
||||||
sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com")
|
sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com")
|
||||||
|
|
||||||
for i in re.finditer('https://i.imgur.com/(.*?)\.(jpg|png|jpeg|)', sanitized):
|
for i in re.finditer('https://i.imgur.com/((.*?)\.(jpg|png|jpeg))', sanitized):
|
||||||
sanitized = sanitized.replace(i.group(1), i.group(1) + "_d." + i.group(2))
|
sanitized = sanitized.replace(i.group(1), i.group(2) + "_d." + i.group(3) + "?maxwidth=9999")
|
||||||
|
|
||||||
sanitized = bleach.Cleaner(tags=_allowed_tags,
|
sanitized = bleach.Cleaner(tags=_allowed_tags,
|
||||||
attributes=_allowed_attributes,
|
attributes=_allowed_attributes,
|
||||||
|
|
Loading…
Reference in New Issue