diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-01-12 01:27:47 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-01-12 01:27:55 +0100 |
commit | 17093b83ca0ee3a569b6d3ced099c6055828812c (patch) | |
tree | 7194e64a25fbe7017372cbcabaad138f8bcc6692 | |
parent | 5d8683a5cd42ba8d222f2409064c01b2f71a1b99 (diff) |
Allow ~ in --download-archive (Fixes #2137)
-rw-r--r-- | youtube_dl/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 0d11e026e..17165d54c 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -639,6 +639,7 @@ def _real_main(argv=None): u' template'.format(outtmpl)) any_printing = opts.geturl or opts.gettitle or opts.getid or opts.getthumbnail or opts.getdescription or opts.getfilename or opts.getformat or opts.getduration or opts.dumpjson + download_archive_fn = os.path.expanduser(opts.download_archive) if opts.download_archive is not None else opts.download_archive ydl_opts = { 'usenetrc': opts.usenetrc, @@ -706,7 +707,7 @@ def _real_main(argv=None): 'cachedir': opts.cachedir, 'youtube_print_sig_code': opts.youtube_print_sig_code, 'age_limit': opts.age_limit, - 'download_archive': opts.download_archive, + 'download_archive': download_archive_fn, 'cookiefile': opts.cookiefile, 'nocheckcertificate': opts.no_check_certificate, 'proxy': opts.proxy, |