From aa9acced76a14f26b2b4d0bff752c0e5d611ca78 Mon Sep 17 00:00:00 2001 From: ThioJoe <12518330+ThioJoe@users.noreply.github.com> Date: Sat, 18 Dec 2021 18:40:47 -0700 Subject: [PATCH] Update Script - Fix Scanning Certain Items Character padding was causing freezing on certain matches, possibly because of improperly escaped characters --- YouTubeSpammerPurge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YouTubeSpammerPurge.py b/YouTubeSpammerPurge.py index f2bb0f5d..bc0624e5 100644 --- a/YouTubeSpammerPurge.py +++ b/YouTubeSpammerPurge.py @@ -1839,7 +1839,7 @@ def prepare_filter_mode_smart(currentUser, scanMode, config, miscData, sensitive value = re.compile(confusable_regex(word.upper(), include_character_padding=True).replace(m, a)) compiledRegexDict['yellowAdWords'].append([word, value]) for word in exactRedAdWords: - value = re.compile(confusable_regex(word.upper(), include_character_padding=True).replace(m, a)) + value = re.compile(confusable_regex(word.upper(), include_character_padding=False).replace(m, a)) compiledRegexDict['exactRedAdWords'].append([word, value]) for word in usernameRedWords: value = re.compile(confusable_regex(word.upper(), include_character_padding=True).replace(m, a)) @@ -2140,7 +2140,7 @@ def main(): print(f"~~~~~~~~~~~ Choose how to identify spammers ~~~~~~~~~~~") print("-------------------------------------------------------") print(f" 1. {F.BLACK}{B.YELLOW}(RECOMMENDED):{S.R} Auto-Smart Mode: Automatically detects {F.YELLOW}multiple spammer techniques{S.R}") - print(f" 2. Sensitive Smart Mode: Much more likely to catch all spammers, but with slightly more false positives") + print(f" 2. Sensitive Smart Mode: Much more likely to catch all spammers, but with significantly more false positives") print(f" 3. Enter Spammer's {F.LIGHTRED_EX}channel ID(s) or link(s){S.R}") print(f" 4. Scan {F.LIGHTGREEN_EX}usernames{S.R} for criteria you choose") print(f" 5. Scan {F.CYAN}comment text{S.R} for criteria you choose")