mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
Allow --print
to be run at any post-processing stage
This commit is contained in:
parent
e88e1febd8
commit
ed5835b451
3 changed files with 47 additions and 43 deletions
17
README.md
17
README.md
|
@ -667,11 +667,13 @@ You can also fork the project on github and run your fork's [build workflow](.gi
|
|||
--skip-download Do not download the video but write all
|
||||
related files (Alias: --no-download)
|
||||
-O, --print [WHEN:]TEMPLATE Field name or output template to print to
|
||||
screen per video. Prefix the template with
|
||||
"playlist:" to print it once per playlist
|
||||
instead. Implies --quiet and --simulate
|
||||
(unless --no-simulate is used). This option
|
||||
can be used multiple times
|
||||
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
|
||||
-j, --dump-json Quiet, but print JSON information for each
|
||||
video. Simulate unless --no-simulate is
|
||||
used. See "OUTPUT TEMPLATE" for a
|
||||
|
@ -1221,6 +1223,11 @@ Available only when used in `--print`:
|
|||
|
||||
- `urls` (string): The URLs of all requested formats, one in each line
|
||||
- `filename` (string): Name of the video file. Note that the actual filename may be different due to post-processing. Use `--exec echo` to get the name after all postprocessing is complete
|
||||
- `formats_table` (table): The video format table as printed by `--list-formats`
|
||||
- `thumbnails_table` (table): The thumbnail format table as printed by `--list-thumbnails`
|
||||
- `subtitles_table` (table): The subtitle format table as printed by `--list-subs`
|
||||
- `automatic_captions_table` (table): The automatic subtitle format table as printed by `--list-subs`
|
||||
|
||||
|
||||
Available only in `--sponsorblock-chapter-title`:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue