pull/2/head
Aevann1 2022-11-19 14:30:04 +02:00 committed by justcool393
parent 20a5f9f835
commit b5aefda124
2 changed files with 3 additions and 5 deletions

View File

@ -148,8 +148,8 @@ if SITE_NAME == 'rDrama':
PROFANITIES = {
'motherfucker': 'motherlover',
'fuck': ['frick', 'fudge', 'freak'],
' ass ': [' butt ', ' backside ', ' bum '],
'fuck': 'frick',
' ass ': ' butt ',
'shitting': 'pooping',
'lmao': 'lmbo',
'damn': 'darn',
@ -1680,4 +1680,4 @@ if SITE_NAME == 'rDrama':
IMAGE_FORMATS = ['png','gif','jpg','jpeg','webp']
VIDEO_FORMATS = ['mp4','webm','mov','avi','mkv','flv','m4v','3gp']
AUDIO_FORMATS = ['mp3','wav','ogg','aac','m4a','flac']
AUDIO_FORMATS = ['mp3','wav','ogg','aac','m4a','flac']

View File

@ -126,8 +126,6 @@ def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str],
return match_str
else:
repl = replace_with[match_str.lower()]
if not isinstance(repl, str):
repl = random.choice(repl)
return repl if not upper or "<img" in repl else repl.upper()
def sub_matcher_upper(match, replace_with:Union[dict[str, str], dict[str, List[str]]]=SLURS):