Prioritize synced lyrics and improved artist value for lyrics on videos #3254
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#3254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "AARP41298/master"
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?
Hi
With the artist value i achive to resolve #3117
And prioritize lyrics improve a bit #3206
Ex. starseed was displaying the plain lyrics
This is my very first PR, let me know if somethings is wrong.
@ -31,1 +47,3 @@
let response = await fetch(url);
const trackName = alternativeTitle || title;
let alternativeArtist = trackName.split(' - ')[0];
alternativeArtist =
YouTube has many edge cases, so it's not appropriate to parse the title and artist name using such a simple approach.
@ -44,0 +134,4 @@
if (ratio <= 0.9) continue;
filteredResults.push(item);
}
What is this change?
Nice idea, but ontop of that I propose you construct an array of all the queries to be made, and iterate over it.
That way it is much easier to add fallback queries and expand on it in the future, and it is less repetitive.
e.g.
heck, you may even gather all the search results from all the queries and do the filter on all of them
@ -26,152 +42,174 @@ export class LRCLib implements LyricProvider {
if (query.get('album_name') === 'undefined') {
query.delete('album_name');
you might wanna do the
break
only if a result matches the other criteria as well, e.g. duration/artistsTo put my two cents here, I've done a quick test on your branch and the fixes from my PR seem to still work in the songs I tested, however I noticed the searching for LRCLIB seem to be much slower. Might just be me not noticing before though I'll look into it further if I have the time.
TODO: Prioritize album name using jaroWinkler
Ex.
Gorillaz - Hong Kong
Played
D-Sides
version, showingDemon Days Live at the Manchester Opera House
lyricsBIGBANG - Fantastic Baby
Identify
Alive
vsStill Alive
vs 100 live versions of the song⚠️ [eslint] <stylistic/no-mixed-operators> reported by reviewdog 🐶
Unexpected mix of '*' and '-'. Use parentheses to clarify the intended order of operations.
⚠️ [eslint] <stylistic/no-mixed-operators> reported by reviewdog 🐶
Unexpected mix of '*' and '-'. Use parentheses to clarify the intended order of operations.
⚠️ [eslint] <stylistic/no-mixed-operators> reported by reviewdog 🐶
Unexpected mix of '-' and '*'. Use parentheses to clarify the intended order of operations.
⚠️ [eslint] <stylistic/no-mixed-operators> reported by reviewdog 🐶
Unexpected mix of '-' and '*'. Use parentheses to clarify the intended order of operations.
⚠️ [eslint] <stylistic/no-mixed-operators> reported by reviewdog 🐶
Unexpected mix of '*' and '-'. Use parentheses to clarify the intended order of operations.
⚠️ [eslint] <stylistic/no-mixed-operators> reported by reviewdog 🐶
Unexpected mix of '*' and '-'. Use parentheses to clarify the intended order of operations.
⚠️ [eslint] <stylistic/no-mixed-operators> reported by reviewdog 🐶
Unexpected mix of '-' and '*'. Use parentheses to clarify the intended order of operations.
⚠️ [eslint] <stylistic/no-mixed-operators> reported by reviewdog 🐶
Unexpected mix of '-' and '*'. Use parentheses to clarify the intended order of operations.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.