From 1e43a6f7336f4d9691dc52a1bc7cfe14ba7a936d Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 3 Jan 2022 16:43:54 +0530 Subject: Allow `--exec` to be run at any post-processing stage Deprecates `--exec-before-download` --- yt_dlp/utils.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yt_dlp/utils.py') diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index ae23ec2a3..f56129aa5 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -3036,6 +3036,9 @@ def qualities(quality_ids): return q +POSTPROCESS_WHEN = {'pre_process', 'before_dl', 'after_move', 'post_process'} + + DEFAULT_OUTTMPL = { 'default': '%(title)s [%(id)s].%(ext)s', 'chapter': '%(title)s - %(section_number)03d %(section_title)s [%(id)s].%(ext)s', -- cgit v1.2.3