mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-10-31 22:55:26 +00:00
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).
This commit is contained in:
parent
699151bcb1
commit
1bdeb7be2e
1 changed files with 2 additions and 2 deletions
|
@ -307,8 +307,8 @@ def _real_main(argv=None):
|
||||||
'forceformat': opts.getformat,
|
'forceformat': opts.getformat,
|
||||||
'forcejson': opts.dumpjson,
|
'forcejson': opts.dumpjson,
|
||||||
'dump_single_json': opts.dump_single_json,
|
'dump_single_json': opts.dump_single_json,
|
||||||
'simulate': opts.simulate,
|
'simulate': opts.simulate or any_printing,
|
||||||
'skip_download': (opts.skip_download or opts.simulate or any_printing),
|
'skip_download': opts.skip_download,
|
||||||
'format': opts.format,
|
'format': opts.format,
|
||||||
'format_limit': opts.format_limit,
|
'format_limit': opts.format_limit,
|
||||||
'listformats': opts.listformats,
|
'listformats': opts.listformats,
|
||||||
|
|
Loading…
Reference in a new issue