-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lyrics: tekstowo backend does not check if the found song actually matches #4406
Comments
Ack, that's pretty bad! We should absolutely confirm that we have a match… these backends aren't really supposed to be "fuzzy" in this way. |
I have been looking into this issue and plan on contributing (first time). Would we want to only return lyrics on an exact match of the title and artist between the top search result and the search query? Or would we prefer a type of similarity score (like the similarity ratio used in the code for finding lyrics through Google search) rather than an exact match? |
Thank you for your interest! Yeah I think it should be a bit fuzzy, using |
We also have an existing utility, Line 249 in e201dd4
|
Problem
Running this command in verbose (
-vv
) mode:$ beet -vv lyrics -p 'kelly bailey'
Led to this problem:
…there are no lyrics. It's an instrumental track.
The backend seems to blindly trust that the first row in search results would be the actual expected song:
beets/beetsplug/lyrics.py
Lines 486 to 494 in 7c67071
But the site absolutely can return something with vaguely similar names!!!
Setup
The text was updated successfully, but these errors were encountered: