|
|
@ -603,8 +603,7 @@ def _real_main(argv=None):
|
|
|
|
u' file! Use "%%(ext)s" instead of %r' %
|
|
|
|
u' file! Use "%%(ext)s" instead of %r' %
|
|
|
|
determine_ext(outtmpl, u''))
|
|
|
|
determine_ext(outtmpl, u''))
|
|
|
|
|
|
|
|
|
|
|
|
# YoutubeDL
|
|
|
|
ydl_opts = {
|
|
|
|
ydl = YoutubeDL({
|
|
|
|
|
|
|
|
'usenetrc': opts.usenetrc,
|
|
|
|
'usenetrc': opts.usenetrc,
|
|
|
|
'username': opts.username,
|
|
|
|
'username': opts.username,
|
|
|
|
'password': opts.password,
|
|
|
|
'password': opts.password,
|
|
|
@ -667,8 +666,9 @@ def _real_main(argv=None):
|
|
|
|
'youtube_print_sig_code': opts.youtube_print_sig_code,
|
|
|
|
'youtube_print_sig_code': opts.youtube_print_sig_code,
|
|
|
|
'age_limit': opts.age_limit,
|
|
|
|
'age_limit': opts.age_limit,
|
|
|
|
'download_archive': opts.download_archive,
|
|
|
|
'download_archive': opts.download_archive,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
with YoutubeDL(ydl_opts) as ydl:
|
|
|
|
if opts.verbose:
|
|
|
|
if opts.verbose:
|
|
|
|
write_string(u'[debug] youtube-dl version ' + __version__ + u'\n')
|
|
|
|
write_string(u'[debug] youtube-dl version ' + __version__ + u'\n')
|
|
|
|
try:
|
|
|
|
try:
|
|
|
@ -685,7 +685,8 @@ def _real_main(argv=None):
|
|
|
|
sys.exc_clear()
|
|
|
|
sys.exc_clear()
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
write_string(u'[debug] Python version %s - %s' %(platform.python_version(), platform_name()) + u'\n')
|
|
|
|
write_string(u'[debug] Python version %s - %s' %
|
|
|
|
|
|
|
|
(platform.python_version(), platform_name()) + u'\n')
|
|
|
|
|
|
|
|
|
|
|
|
proxy_map = {}
|
|
|
|
proxy_map = {}
|
|
|
|
for handler in opener.handlers:
|
|
|
|
for handler in opener.handlers:
|
|
|
|