X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2F__init__.py;h=a96bf9b5cd978cdc09e8cec4596cad473adc809a;hb=c6b4132a0ad568b8383dfb64689b7d45182f275a;hp=613ce3576eb038cd335a5b10124dfbe7e1f249ea;hpb=30b871b0ca09ae6088d8a8a0f77bf4d25aa0cb5b;p=youtube-dl.git diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 613ce3576..a96bf9b5c 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -72,6 +72,7 @@ __authors__ = ( 'Alexander Kirk', 'Erik Johnson', 'Keith Beckman', + 'Ole Ernst', ) __license__ = 'Public Domain' @@ -317,6 +318,8 @@ def parseOpts(overrideArguments=None): dest='username', metavar='USERNAME', help='account username') authentication.add_option('-p', '--password', dest='password', metavar='PASSWORD', help='account password') + authentication.add_option('-2', '--twofactor', + dest='twofactor', metavar='TWOFACTOR', help='two-factor auth code') authentication.add_option('-n', '--netrc', action='store_true', dest='usenetrc', help='use .netrc authentication data', default=False) authentication.add_option('--video-password', @@ -751,6 +754,7 @@ def _real_main(argv=None): 'usenetrc': opts.usenetrc, 'username': opts.username, 'password': opts.password, + 'twofactor': opts.twofactor, 'videopassword': opts.videopassword, 'quiet': (opts.quiet or any_printing), 'no_warnings': opts.no_warnings,