Skip to content

(Synced Lyrics) Does track length affect the insertion of synchronized Lyrics? #2333

Closed Answered by ArjixWasTaken
Dzheremi2 asked this question in Q&A
Discussion options

You must be logged in to vote

The code picks the lyrics result that is closest to the track's duration.
https://github.com/th-ch/youtube-music/blob/master/src/plugins/synced-lyrics/renderer/lyrics/fetch.ts#L139-L152

If the difference from the closest result to the track's duration is more than 15 seconds it doesn't insert lyrics
https://github.com/th-ch/youtube-music/blob/master/src/plugins/synced-lyrics/renderer/lyrics/fetch.ts#L156

if the difference is more than 5, but less than 15, it shows a warning that the timings may not be accurate
https://github.com/th-ch/youtube-music/blob/master/src/plugins/synced-lyrics/renderer/lyrics/fetch.ts#L157

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ArjixWasTaken
Comment options

Answer selected by Dzheremi2
@ArjixWasTaken
Comment options

@Lockszmith-GH
Comment options

@ArjixWasTaken
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants