Skip to content

fix: remove parentheses and brackets from song title during lyrics search#3042

Open
kairosci wants to merge 1 commit intoMetrolistGroup:mainfrom
kairosci:fix/remove-parentheses-from-lyrics-search
Open

fix: remove parentheses and brackets from song title during lyrics search#3042
kairosci wants to merge 1 commit intoMetrolistGroup:mainfrom
kairosci:fix/remove-parentheses-from-lyrics-search

Conversation

@kairosci
Copy link
Contributor

@kairosci kairosci commented Feb 26, 2026

Problem

Lyrics search often returns incorrect or irrelevant results (e.g., Chinese or Japanese lyrics for Western songs) when the song title contains metadata.

Cause

Song titles often contain metadata in parentheses or brackets like (feat. ...), (Remastered), [Original Mix], etc. These extra strings interfere with the search queries of various lyrics providers, leading to poor match quality or mismatching.

Solution

Implemented a cleanTitleForSearch function in LyricsUtils that strips all content within parentheses () and square brackets [] from the song title. LyricsHelper now uses this cleaned title when querying lyrics providers.

Testing

  • Verified that titles like "Song Name (feat. Artist)" are cleaned to "Song Name".
  • Confirmed improved lyrics match accuracy for several tracks previously returning incorrect results.

Closes #3041

@kairosci kairosci marked this pull request as draft February 26, 2026 11:55
@kairosci kairosci force-pushed the fix/remove-parentheses-from-lyrics-search branch from 881a236 to 5aa7665 Compare February 26, 2026 11:56
@kairosci kairosci marked this pull request as ready for review February 26, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect lyrics search results due to metadata in song titles

1 participant