diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-02-22 17:13:30 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-02-23 04:26:48 +0530 |
commit | 09b49e1f688831c3ad7181decf38c90f8451e6c4 (patch) | |
tree | 4d842cbe7a7016a99875f66d90dfbe3269747b36 /yt_dlp/options.py | |
parent | 1108613f021eea0f6d4c5786c94db98641af6d59 (diff) | |
download | hypervideo-pre-09b49e1f688831c3ad7181decf38c90f8451e6c4.tar.lz hypervideo-pre-09b49e1f688831c3ad7181decf38c90f8451e6c4.tar.xz hypervideo-pre-09b49e1f688831c3ad7181decf38c90f8451e6c4.zip |
Add pre-processor stage `after_filter`
* Move `_match_entry` and `post_extract` to `process_video_result`. It is also left in `process_info` for API compat
* `--list-...` options and `--force-write-archive` now obey filtering options
* Move `SponsorBlockPP` to `after_filter`. Closes https://github.com/yt-dlp/yt-dlp/issues/2536
* Reverts 4ec82a72bbf7ff0066edb50dcad20aa77ac2fe09 since this commit addresses the issue it was solving
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 2ba7d2601..6fcef98cd 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -1550,11 +1550,11 @@ def create_parser(): 'and (optionally) arguments to be passed to it, separated by a colon ":". ' 'ARGS are a semicolon ";" delimited list of NAME=VALUE. ' 'The "when" argument determines when the postprocessor is invoked. ' - 'It can be one of "pre_process" (after extraction), ' - '"before_dl" (before video download), "post_process" (after video download; default), ' - '"after_move" (after moving file to their final locations), ' + 'It can be one of "pre_process" (after video extraction), "after_filter" (after video passes filter), ' + '"before_dl" (before each video download), "post_process" (after each video download; default), ' + '"after_move" (after moving video file to it\'s final locations), ' '"after_video" (after downloading and processing all formats of a video), ' - 'or "playlist" (end of playlist). ' + 'or "playlist" (at end of playlist). ' 'This option can be used multiple times to add different postprocessors')) sponsorblock = optparse.OptionGroup(parser, 'SponsorBlock Options', description=( |