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