aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-02-22 17:13:30 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-02-23 04:26:48 +0530
commit09b49e1f688831c3ad7181decf38c90f8451e6c4 (patch)
tree4d842cbe7a7016a99875f66d90dfbe3269747b36 /yt_dlp/utils.py
parent1108613f021eea0f6d4c5786c94db98641af6d59 (diff)
downloadhypervideo-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/utils.py')
-rw-r--r--yt_dlp/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index f5cad0e54..8b0d95efa 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -3166,7 +3166,7 @@ def qualities(quality_ids):
return q
-POSTPROCESS_WHEN = {'pre_process', 'before_dl', 'after_move', 'post_process', 'after_video', 'playlist'}
+POSTPROCESS_WHEN = {'pre_process', 'after_filter', 'before_dl', 'after_move', 'post_process', 'after_video', 'playlist'}
DEFAULT_OUTTMPL = {