-
-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synced Lyrics no do not work after playing song with no lyrics #1090
Comments
Can you see if 2.6.5 fixes this for you? |
Please run |
If you play some songs without lyrics and play songs with lyrics again, it says there are no lyrics. This is the same in lyrics-plus. |
@Lseoksee tested it myself, you are right! I'll investigate further! |
I cannot reproduce this myself. Playing a song with no lyrics then playing another, it still works. On 2.6.6. |
Even in 2.6.6 there is definitely a bug with the popuplyrics extension. Below 4 examples of popular songs where it just showed "No lyric". I had it working moments ago but after a few songs without lyrics it just shows "No lyric" for all songs. UPDATE: As pictured below, after restarting spicetify it works again for the same songs. And again after playing a song where there are no lyrics available, I get the "No lyric" for the same 4 songs again (see screenshot 1). Spotify version = 1.1.68.632.g2b11de83 |
Is there any output in the console? |
My console looks like this:
|
All of you with this issue, have you retrieved your own musixmatch token, or are you using the embedded one? Try getting your own again (as per wiki instructions https://github.com/khanhas/spicetify-cli/wiki/Musixmatch-Token). |
I used the embedded one before. Just got my own and it unfortunately it does not fix the issue. Popup Lyrics works until I'm playing a few songs without lyrics, I can however confirm it is not always the first song without lyrics that triggers the extension to stop working. Perhaps an issue with local files? |
I also have the same issue and well something else relating to the pop ul lyrics as well, the pop up lyrics sometimes closes by themselves when a song ends and this happens when there is a long instrumental part in the songs without any lyrics it closes by itself. |
so what should we do to solve this? |
Can you confirm this after updating 2.7.0? I fixed an issue like this in my PR @shallowswimmer |
It seems to be better than before, but the problem still hasn't been completely solved. If you switch several songs quickly, you will get an error. |
@Lseoksee There's nothing that can be done about that part, I was specifically addressing the "randomly closing itself" error. That seems to be caused by musixmatch implementing anti-spam measures. Maybe we could add a way to submit captchas, but I'm not sure how that even works. |
Can anyone who has updated also verify what error they are getting in the console now? I changed the error handling to be more descriptive. |
After spamming songs where I know there won't be lyrics available (new songs in other languages) I could replicate the bug, my console looks like this. At the point where the pop-up-lyrics-request errors appear PopupLyrics screen is already frozen and doesn't update upon changing songs. Feel free to ask more details, I don't really know how most of this works but I'd like to help you find what you're looking for. |
However, from my experience, if you keep playing songs without skipping, eventually, it comes back I guess we're just getting flagged for bot-like behaviour. |
@AntServiceApps You aren't running 2.7.0! That error output is old. Also, expand those |
@znicuuu Hmm... I guess I will need to improve the error messaging further. It seems the body object doesn't have |
Musixmatch itself has broken API for either website & desktop app (actually used by spiectify). It's very ratelimited and breaks a lot. I already tried to debug it sometime ago to check what happens - but, it's basically API failing to sometimes send lyrics and sometimes it's captcha or sometimes it will return it as 404, sometimes will not. PopupLyrics breaks because of it most of time and it to fix it, you need to restart spotify (or do CTRL+R in DevTools) like @AntServiceApps did. There is nothing to do, since I already tried to contact Musixmatch developers but they seem to don't care (since I wanted to use their API for my own app). |
if it is ratelimited, we can maybe add multiple tokens so it falls back (need to see how tokens are generated (IP, or other tracking systems) |
edit: #1090 (comment)
It's ratelimited - but, like I say, API sometimes fail to just send lyrics and returns 404 in body.
There is no big service like this :/ |
It generates a token when you download the app and don't register. Was speaking about that to see if we can automate or create multiple tokens easily. The app use things like IP and other things so can't just uninstall and reinstall to get a new token.
So lyrics can retry the request if error 404 |
My bad. Yeah, it uses Update; It's assigned to guid that can be generated by this code: console.log("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
/[xy]/g,
function (e) {
var t;
return (
(t = (16 * Math.random()) | 0),
("x" === e ? t : (3 & t) | 8).toString(16)
);
}
)) |
you just created a token generator😳 console.log("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
/[xy]/g,
function (e) {
var t;
return (
(t = (16 * Math.random()) | 0),
("x" === e ? t : (3 & t) | 8).toString(16)
);
}
)) and parse the json and get a new token |
This code is from Musixmatch app (without |
I mean, I would suggest for someone to try this locally before even thinking of pushing this change. But if it works, I'm good with it 👀 I'm afraid of an IP ban however |
Fascinated and interested in how you did and found that
It's a deeply hidden feature, not an exploit.
Should be OK if we just create like 3 tokens in localstorage or whatever it uses and go through them if one doesn't work. |
Probably not.
Basically just unpacked app and was looking in JavaScript files. |
I've been having the same issue for awhile now. Was this ever fixed or is it out of our control? |
There is a solution we have devised for this, but I have not yet taken the time to implement it. |
Marking this issue as stale. Let someone know if I'm wrong, after all, I'm just a bot! |
Here is some log output I got when synced lyrics were stuck on loading for a bit, refreshing and clicking around seemed to fix it
|
@khanhas I have found a way to process captcha requests from musixmatch's API, but I need to disable the web security policy in order to rip the response out of an iframe within the client... Would it be a terrible idea to insert Anyone have any thoughts on this? |
I have no idea what any of that means, but if it fixes musixmatch lyrics, yes please. |
I think it's just too many steps and requirements to fix a rarely happening scenario. User just need to wait 10 to 15m cooldown till API is usable again. |
@ririxidev Does your Musixmatch token generator function still work? Do you have fully working code, I can test it out and implement into Lyrics app setting menu. |
I added token generation locally already, it is still affected by captcha response. The captcha page has no trackers actually, just google recaptcha script. The users would not have to disable policy, it would be inserted into Spotify launch flags automatically. |
It seems this won't be as necessary anymore because Spotify has just implemented lyrics for U.S. users. They work quite well. |
ℹ Computer information
✔️ Expected result
popupLyrics showing lyrics normally
❌ Actual result
popupLyrics saying theres no lyrics for every song
📷 Screenshots
The text was updated successfully, but these errors were encountered: