diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-10 23:57:59 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-11 00:28:01 +0530 |
commit | ed5835b4513aed59ff29f4bdb7e07456cd041ee0 (patch) | |
tree | de65fd1913068a95fffc4dd2039ae7651756e15f /yt_dlp/options.py | |
parent | e88e1febd8860e42b561ff5068a782cf3364277a (diff) |
Allow `--print` to be run at any post-processing stage
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 15c480e6d..4dd7c6dbd 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -910,13 +910,13 @@ def create_parser(): metavar='[WHEN:]TEMPLATE', dest='forceprint', default={}, type='str', action='callback', callback=_dict_from_options_callback, callback_kwargs={ - 'allowed_keys': 'video|playlist', + 'allowed_keys': 'video|' + '|'.join(map(re.escape, POSTPROCESS_WHEN)), 'default_key': 'video', 'multiple_keys': False, 'append': True, }, help=( - 'Field name or output template to print to screen per video. ' - 'Prefix the template with "playlist:" to print it once per playlist instead. ' + 'Field name or output template to print to screen, optionally prefixed with when to print it, separated by a ":". ' + 'Supported values of "WHEN" are the same as that of --use-postprocessor, and "video" (default). ' 'Implies --quiet and --simulate (unless --no-simulate is used). This option can be used multiple times')) verbosity.add_option( '-g', '--get-url', |