Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube login code outdated #658
Comments
|
This seems to work for me. The argument to option _utf8 in the login form is Unicode character U+9731, I just couldnt get chr() or unichr() to work. By the way, the URL for setting the language still works, however the age verification URL forwards to /oops. |
|
Do you need any more testing/info on this, or is a .diff file not what you want for code submits? |
|
Thanks for the report and code contribution. We usually like pull requests (because it allows inline commenting here), but patches are fine as well. I'll merge your diff (with minor changes for Python 2 compatibility). |
|
Mmm, login works fine for me with a native youtube account. Trying with a google acccount ... |
|
Oops, wrong test. This patch indeed fixes the login, thanks! Applied with minor changes. |
The code used for signing in to Youtube seems to be outdated. I tried to log in using
wget --output-document login.html --post-data "current_form=loginForm&next=/&action_login=Log In&username=foo&password=bar" --save-cookies /tmp/wget.cookies "https://www.youtube.com/signup?next=/&gl=US&hl=en"
(URL and form data taken from InfoExtractors.py - lines 154 & 319-325) and got forwarded to https://www.youtube.com/oops. The page at https://www.youtube.com/oops does not contain the word loginForm, which is why the warning about youtube-dl being unable to log in never gets printed.
If you paste https://www.youtube.com/signup?next=/&gl=US&hl=en into your webbrowser you'll get forwarded to the new signup/sign in page on http://accounts.google.com.