aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-04-24 18:52:09 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-04-24 18:55:43 +0530
commitd669772c65e8630162fd6555d0a578b246591921 (patch)
treee37016ca54f6e341af4b305768306e7a08f71fa2 /yt_dlp
parentec9311c41b111110bc52cfbd6ea682c6fb23f77a (diff)
downloadhypervideo-pre-d669772c65e8630162fd6555d0a578b246591921.tar.lz
hypervideo-pre-d669772c65e8630162fd6555d0a578b246591921.tar.xz
hypervideo-pre-d669772c65e8630162fd6555d0a578b246591921.zip
Add `--no-quiet`
Closes #6796
Diffstat (limited to 'yt_dlp')
-rw-r--r--yt_dlp/__init__.py3
-rw-r--r--yt_dlp/options.py6
2 files changed, 7 insertions, 2 deletions
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py
index bdac1212c..79b9a7679 100644
--- a/yt_dlp/__init__.py
+++ b/yt_dlp/__init__.py
@@ -704,7 +704,8 @@ 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)
+ if opts.quiet is None:
+ opts.quiet = 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
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index d334a9caa..a2f508552 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -1079,9 +1079,13 @@ def create_parser():
verbosity = optparse.OptionGroup(parser, 'Verbosity and Simulation Options')
verbosity.add_option(
'-q', '--quiet',
- action='store_true', dest='quiet', default=False,
+ action='store_true', dest='quiet', default=None,
help='Activate quiet mode. If used with --verbose, print the log to stderr')
verbosity.add_option(
+ '--no-quiet',
+ action='store_false', dest='quiet',
+ help='Deactivate quiet mode. (Default)')
+ verbosity.add_option(
'--no-warnings',
dest='no_warnings', action='store_true', default=False,
help='Ignore warnings')