X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=youtube-dl;a=blobdiff_plain;f=youtube_dl%2F__init__.py;h=cb4f2e41c71de8ba3c4b60b18d12f4bbc388bd36;hp=578ecc4abc8777c45fc95daa338da993ce91f331;hb=f889cea109b4e2647e3fd6a462c9893b88b21e04;hpb=1bdeb7be2e5bef703d54d8786fbc6f3c0c23faef diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 578ecc4ab..cb4f2e41c 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -98,6 +98,7 @@ from .options import ( parseOpts, ) from .utils import ( + compat_expanduser, compat_getpass, compat_print, DateRange, @@ -287,7 +288,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 or opts.dump_single_json - download_archive_fn = os.path.expanduser(opts.download_archive) if opts.download_archive is not None else opts.download_archive + download_archive_fn = compat_expanduser(opts.download_archive) if opts.download_archive is not None else opts.download_archive ydl_opts = { 'usenetrc': opts.usenetrc,