-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Failure to extract player url for a youtube video #32586
Comments
Actually doing that would have saved you the debugging. Review #30839. |
I've spent a whole morning looking for a similar issue. Debugging happened faster and more methodically than searching for a needle in a haystack. And I still do not know how to solve that issue. I'll spend another morning tomorrow. Or in a week. |
Duplicate from this one, perhaps ? #32499 It would perhaps make sense to attempt to link such issues with this error message in the youtube-dl cli app itself. |
The |
Checklist
Verbose log
Description
This situation occurs for
youtube-dl
built from source revision00ef748cc0e35ee60efd0f7a00e373ab8d1af86b
.As far as I could hunt down things,
youtube-dl
attempts to downloadhttps://www.youtube.com/watch?v=r0Ogt-q956I&bpctr=9999999999&has_verified=1
from the function_request_webpage
which is invoked (with some levels of indirection) from_real_extract
. Inextractor/youtube.py
, line1602
, in function_extract_player_url
, there is ther'"(?:PLAYER_JS_URL|jsUrl)"\s*:\s*"([^"]+)"'
regexp that is matched against the webpage whose url is given above, and nothing is found. It may therefore be a change in the contents of that webpage that induces this behaviour. I can unfortunately not go into debugging that without more background knowledge of what youtube precisely does and how it may or may not have changed recently. The_extract_player_url
function is called in a loop on line2034
ofextractor/youtube.py
and, because of this parsing failure, that loop is exited early, and theformats
variable is never populated on line2076
with the video formats. Hence the reported error.The text was updated successfully, but these errors were encountered: