mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #564] [MERGED] Improved Lyric_finder to retrieve correct lyrics instead of its translation #799
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#799
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aome510/spotify-player/pull/564
Author: @genricoloni
Created: 9/16/2024
Status: ✅ Merged
Merged: 9/26/2024
Merged by: @aome510
Base:
master← Head:master📝 Commits (2)
754056cFixed error in lyric_finder/lib.rs that, for some songs, shown the translation of a lyric instead of the actual one7b36b57Fix formatting issues as per cargo fmt📊 Changes
1 file changed (+15 additions, -10 deletions)
View changed files
📝
lyric_finder/src/lib.rs(+15 -10)📄 Description
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_nameso afind()is used to exclude the results with keywordGeniusin that field.The rest of the code hasn't changed, so the first result is chosen.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
librespotto0.7.0, fixing audio, authentication, DNS lookup issues #885librespotto0.7.0, fixing audio, authentication, DNS lookup issues #1823