X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2F__init__.py;h=cb4f2e41c71de8ba3c4b60b18d12f4bbc388bd36;hb=f889cea109b4e2647e3fd6a462c9893b88b21e04;hp=59b8510563e7651d60abac526634970809979b2f;hpb=ec9c978481eee1035ac478926a73f729232be204;p=youtube-dl diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 59b851056..cb4f2e41c 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -82,6 +82,7 @@ __authors__ = ( 'Dennis Scheiba', 'Damon Timm', 'winwon', + 'Xavier Beynon' ) __license__ = 'Public Domain' @@ -97,6 +98,7 @@ from .options import ( parseOpts, ) from .utils import ( + compat_expanduser, compat_getpass, compat_print, DateRange, @@ -286,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, @@ -306,8 +308,8 @@ def _real_main(argv=None): 'forceformat': opts.getformat, 'forcejson': opts.dumpjson, 'dump_single_json': opts.dump_single_json, - 'simulate': opts.simulate, - 'skip_download': (opts.skip_download or opts.simulate or any_printing), + 'simulate': opts.simulate or any_printing, + 'skip_download': opts.skip_download, 'format': opts.format, 'format_limit': opts.format_limit, 'listformats': opts.listformats,