ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.27k stars 9.94k forks source link

twofactor code input request #5868

Open Igor-Shmidt opened 9 years ago

Igor-Shmidt commented 9 years ago

If i provide only -u parameter with username, app asks to input password, but if then youtube required two factor authentication- there no request for user to input key generated by Google Authenticator app.

It will be great to have a possibility to input TFA-code on-demand.

THANKS

vxbinaca commented 9 years ago

Couldn't you make an app-specific password for youtube-dl?

Saklad5 commented 7 years ago

This issue should be closed, as there is now a two-factor code option.

ghost commented 7 years ago

@vxbinaca No, youtube-dl doesn't support app-specific passwords, because it's not supported in browsers either, and obviously there is no official YouTube API to download videos without any sort of DRM, so youtube-dl pretends to be a browser.

Though 2FA support for YouTube is broken right now unless you use --cookies (see #13050), this issue can be closed as it has been implemented since it was opened and there is no need to have multiple open issues on the same topic.

vxbinaca commented 7 years ago

I concur. Cookies is a cleaner solution. Asking for a close as well.