-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
lyrics: detect MusixMatch blocking #2634
Conversation
we just look for the bad string in the HTML. this has the downside that we may consider songs that have those exact lyrics (you never know, really) may trigger this warning as well and we would fail to fetch those songs. we also fail if lyrics contain another magic string that seems to come up when you do fill in the CAPTCHA after being blocked.
i'm not sure about this. as I mention in the description, some bands actually use error messages in their lyrics now (!) so this might create false positives. especially for the latter check introduced... |
i also wonder if the warning should not be a little more violent: should we just completely abort? |
btw - the CAPTCHA solving doesn't work unless you carry over that cookie it sends you when you solve it. :( it also looks like the block is not permanent. i suspect there may be some rate-limiting going on here... for example:
now maybe the lyrics for that second entry were fetched elsewhere... but it seems to me an indicator of rate-limiting... |
Looks good. Could you please add a changelog entry? Then this should be good to go.
I'm good with this just being a warning—a fail-stop error seems a little aggressive, since other backends could work just fine. |
changelog: done. |
Perfect! ✨ |
Also, I sent you an invitation to join the @beetbox org. Thanks for all your help recently, and welcome aboard! As a collaborator you can push directly, of course, but don’t hesitate to use a PR if you ever want a code review. |
oh wow, thanks! i'll certainly send PRs for a while still, thank you so much for your confidence again, it's greatly appreciated! |
we just look for the bad string in the HTML. this has the downside
that we may consider songs that have those exact lyrics (you never
know, really) may trigger this warning as well and we would fail to
fetch those songs.
we also fail if lyrics contain another magic string that seems to come
up when you do fill in the CAPTCHA after being blocked.
for an example of error messages in songs, I suggest listening to the
excellent "Retry? Abort? Ignore?" from the band called "Martyr".
this is to fix #2632, obviously.