Hi,
I noticed that for some lyrics, one of its translation is shown instead of the actual lyric, and this because for some obscure reason Genius responses by putting these translations at the top of the results. You can reproduce this behavior by playing the song "Kingslayer" by "Bring Me The Horizon".
Fortunately, all the results results (at least the bunch of those I checked manually to implement this fix) have "Genius < language > <_translation_ written in that language>" as artist_name so a find() is used to exclude the results with keyword Genius in that field.
The rest of the code hasn't changed, so the first result is chosen.
Hi, I noticed that for some lyrics, one of its translation is shown instead of the actual lyric, and this because for some obscure reason Genius responses by putting these translations at the top of the results. You can reproduce this behavior by playing the song "Kingslayer" by "Bring Me The Horizon". Fortunately, all the results results (at least the bunch of those I checked manually to implement this fix) have "Genius < language > <_translation_ written in that language>" as
artist_name
so afind()
is used to exclude the results with keywordGenius
in that field. The rest of the code hasn't changed, so the first result is chosen.