whoopsies
This commit is contained in:
@ -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$')
|
||||
|
||||
|
Reference in New Issue
Block a user