whoopsies

This commit is contained in:
2025-02-15 21:18:20 -05:00
parent 39d1ddaffa
commit e82ca841a8
3 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,7 @@ class TrackMatcher:
best_match = candidate
# Return the match only if it meets the threshold
if best_score >= self.threshold:
if best_score < self.threshold:
return None
match: tuple = (best_match, round(best_score * 100))
return match
@ -106,7 +106,7 @@ class DataUtils:
self.lrc_regex = regex.compile(r'\[([0-9]{2}:[0-9]{2})\.[0-9]{1,3}\](\s(.*)){0,}')
self.scrub_regex_1: Pattern = regex.compile(r'(\[.*?\])(\s){0,}(\:){0,1}')
self.scrub_regex_2: Pattern = regex.compile(r'(\d?)(Embed\b)',
flags=regex.IGNORECASe)
flags=regex.IGNORECASE)
self.scrub_regex_3: Pattern = regex.compile(r'\n{2}')
self.scrub_regex_4: Pattern = regex.compile(r'[0-9]\b$')