linter fixes

This commit is contained in:
2025-01-17 07:54:17 -05:00
parent ce04722763
commit 83db5730f2
3 changed files with 16 additions and 12 deletions

View File

@ -203,12 +203,12 @@ class LyricSearch(FastAPI):
if data.sub and not data.lrc:
lyric_lines = result['lyrics'].strip().split(" / ")
for i, line in enumerate(lyric_lines):
line = regex.sub(r'\u2064', '', line.strip())
if data.sub.strip().lower() in line.strip().lower():
seeked_found_line = i
logging.debug("Found %s at %s, match for %s!",
line, seeked_found_line, data.sub) # REMOVEME: DEBUG
break
line = regex.sub(r'\u2064', '', line.strip())
if data.sub.strip().lower() in line.strip().lower():
seeked_found_line = i
logging.debug("Found %s at %s, match for %s!",
line, seeked_found_line, data.sub) # REMOVEME: DEBUG
break
if not seeked_found_line:
return {