spotify-player icon indicating copy to clipboard operation
spotify-player copied to clipboard

Lyric finder returns incorrect lyrics

Open apprehensions opened this issue 1 year ago • 5 comments

Describe the bug The Lyric finder returns random lyrics for a song i listen to, but the lyrics are for a completely different song.

To Reproduce Listen to any obscure music, maybe one with or without vocals.

Expected behavior No lyrics found

Screenshots image image The above song has actual lyrics, however this is a different lyrics set. image

apprehensions avatar Nov 07 '23 14:11 apprehensions

Can use string similarity metric (https://docs.rs/strsim/latest/strsim/) to detect similarities between query title vs returned title, and query artists vs returned artists. Genius is kind of a best-effort way to get the lyric anyway, so the result is not always correct.

aome510 avatar Nov 11 '23 01:11 aome510

How come Spotify is able to retrieve lyrics with accuracy then? they use their in-house lyrics?

apprehensions avatar Nov 18 '23 05:11 apprehensions

How come Spotify is able to retrieve lyrics with accuracy then? they use their in-house lyrics?

Not sure. Official app indicates they use https://www.musixmatch.com which may have better search functionality than genius.

aome510 avatar Nov 18 '23 19:11 aome510

Some time ago, I hacked together a PoC that used lyricstify's API to fetch lyrics, which iirc uses Spotify's internal APIs under the hood to retrieve the lyrics. I did it because genius often doesn't contain lyrics to songs I listen to.

My goal was to clean up the code (it's a dirty hack and the lyricstify maintainers might not appreciate calling their API directly) and eventually upstream it, but I never found the time to. I'm now hoping this information is helpful to whoever is interested in tackling this problem!

JingYenLoh avatar Mar 12 '24 15:03 JingYenLoh