aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-02-13 01:19:46 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-02-13 01:19:51 +0530
commit5712943b764ba819ef479524c32700228603817a (patch)
tree3074b20564864162be299e2c482a2a81c28c07b4
parent39f32f1715c0dffb7626dda7307db6388bb7abaa (diff)
Imply `--no-progress` when `--print`
-rw-r--r--yt_dlp/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py
index df1a54138..255b31735 100644
--- a/yt_dlp/__init__.py
+++ b/yt_dlp/__init__.py
@@ -708,6 +708,7 @@ def parse_options(argv=None):
'dumpjson', 'dump_single_json', 'getdescription', 'getduration', 'getfilename',
'getformat', 'getid', 'getthumbnail', 'gettitle', 'geturl'
))
+ opts.quiet = opts.quiet or any_getting or opts.print_json or bool(opts.forceprint)
playlist_pps = [pp for pp in postprocessors if pp.get('when') == 'playlist']
write_playlist_infojson = (opts.writeinfojson and not opts.clean_infojson
@@ -743,7 +744,7 @@ def parse_options(argv=None):
'client_certificate': opts.client_certificate,
'client_certificate_key': opts.client_certificate_key,
'client_certificate_password': opts.client_certificate_password,
- 'quiet': opts.quiet or any_getting or opts.print_json or bool(opts.forceprint),
+ 'quiet': opts.quiet,
'no_warnings': opts.no_warnings,
'forceurl': opts.geturl,
'forcetitle': opts.gettitle,