aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-10-26 13:01:57 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-10-26 13:01:57 +0100
commit1bdeb7be2e5bef703d54d8786fbc6f3c0c23faef (patch)
tree8295aa8178f31b78fdb4563428fac9b5d3023223
parent699151bcb1880785b29a78deef61c6fb192a34b4 (diff)
Set '--simulate' if any of the printing options is given (fixes #3036)
That's what the help messages say. Previously it would only set '--skip-download', which would write thumbnail, descriptions or subtitles if they were requested (for example you may have set '--write-thumbnail' in the config file).
-rw-r--r--youtube_dl/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 4f5ce604f..578ecc4ab 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -307,8 +307,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,