[Bug]: Synced Lyrics: Can't find YTMusic lyrics despite existing in web client #3199
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#3199
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?
Preflight Checklist
YouTube Music (Application) Version
3.8.0
Checklists
What operating system are you using?
Windows
Operating System Version
Windows 11 Pro Version 23H2
What CPU architecture are you using?
x64
Last Known Working YouTube Music (Application) version
No response
Reproduction steps
Expected Behavior
You get the lyrics
Actual Behavior
It can't find the lyrics, for any provider, despite them existing in the regular YTM web client (they're synced there as well as you can see in the image for the mobile app).
It can't find LRCLib lyrics despite them existing in the database too.
Android App (to show they're synced officially)

Web Client:

Desktop App:

Enabled plugins
Additional Information
Seeing the request in the developer tools for LRCLib it's only querying for the English name but they're only available for the Japanese name, maybe we should query for both names as the original title language is displayed in the app anyway?
Though I'm not sure how the title language affects the YTMusic lyric fetching, it seems weird since I don't believe it should matter in that case? I'm not sure how it's implemented though, I'll look through it when I have some time.
I've seen it happen in a few other songs not only this one. But it's fairly inconsistent. I was thinking maybe it's a cache issue? I don't know how aggressive the caching is for the lyrics (or if it does it at all)
for youtube music lyrics, an old version of the iOS client is used (at least that's the API we use)
maybe they are not available for whatever reason on the old iOS client?
That's weird, what's the API endpoint? I'll test it
I can see that youtube returns lyrics for that song, but they aren't synced.
--
Still, they should have shown even if not synced.
That's weird
Yeah I was checking and just saw it, on Android they are synced so it's doubly weird.
Yeah I am not doubting you, google doesn't send the same data to all clients.
Oh yeah don't worry I know. Anyway I was diagnosing this and yeah, seems the iOS API doesn't get the lyrics for some reason? They appear in the browse?prettyPrint=False from the youtube API itself but they look like this from the proxy thing you guys are using:
Out of 4 requests to the proxy, only 1 of them actually had lyrics.
You probably know better than me but looking at the code it doesn't seem to fetch the internal endpoint in your screenshot
music.youtube.com/youtubei/v1/browse?prettyPrint=False
for lyrics at any point, it only does the proxified one which has a different response.Would probably be a good idea to add it as a fallback in case the proxy returns "Lyrics not available at this time" or errors out. Though that API doesn't give synced data anyway so meh, I would like to know if they broke the iOS API altogether or it's something temporary. I imagine there's a major reason why you use that specific API, how hard would it be to emulate the Android one for example?
I use that specific API because it does not use protobuf and returns proper json.
Btw it is news to me that a proxy is used.
If i enable synced lyrics i can't see anything at all.
@m0lDaViA
I got an entirely different album picture for that song
but lyrics do show up, maybe you have a different bug?
iirc a lot of people have reported that the "Video toggle" plugin, when set to "custom" instead of "native" will cause issues such as hiding other UI elements, can you turn that plugin off or change its setting to "native"?
You're right. Changing to built-in does work indeed. Funny thing, it worked earlier on the same version.