Synced Lyrics: Also search for lyrics with the original title language #3206
No reviewers
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#3206
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "synced-subs"
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?
I need to test this a bit more, since I have only tested with Japanese songs (Interface in English (US)), I'm not sure if maybe we should keep the original matching as a toggle in the menu.
Added a new array to the song-info type which gets the tags array from microformat.
From what I've seen this array sometimes contains the english artist name, the original artist name, the album name, the album or song producer/composer in both languages, the album name, the song name, etc.
Then we pass alternativeTitle and tags to LRCLib search, here it first tries to the exact match, then searches by the alternative title first, if not found it will fallback to searching the title only again.
On filtering, if the localized artist match is below the threshold, it will compare each tag with each artist from the response.
The songs I've tested are
Oracle - Amane Kanata.
Chandelier - Murasaki Shion
Both weren't working before and are now.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
src/providers/song-info.ts:101
src/plugins/synced-lyrics/providers/LRCLib.ts:55
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
src/plugins/synced-lyrics/providers/LRCLib.ts:49
src/plugins/synced-lyrics/providers/LRCLib.ts:55
src/plugins/synced-lyrics/providers/LRCLib.ts:60
Thanks!