aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-03 16:43:54 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-01-03 19:40:02 +0530
commit1e43a6f7336f4d9691dc52a1bc7cfe14ba7a936d (patch)
tree218655a09fd54a9c51f4db1d5bb7564c633b6f3e /yt_dlp/YoutubeDL.py
parentca30f449a187addcdb99f4c39333e7a292756597 (diff)
downloadhypervideo-pre-1e43a6f7336f4d9691dc52a1bc7cfe14ba7a936d.tar.lz
hypervideo-pre-1e43a6f7336f4d9691dc52a1bc7cfe14ba7a936d.tar.xz
hypervideo-pre-1e43a6f7336f4d9691dc52a1bc7cfe14ba7a936d.zip
Allow `--exec` to be run at any post-processing stage
Deprecates `--exec-before-download`
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index faea85485..5b285e1a1 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -91,6 +91,7 @@ from .utils import (
PerRequestProxyHandler,
platform_name,
Popen,
+ POSTPROCESS_WHEN,
PostProcessingError,
preferredencoding,
prepend_extension,
@@ -507,7 +508,7 @@ class YoutubeDL(object):
params = None
_ies = {}
- _pps = {'pre_process': [], 'before_dl': [], 'after_move': [], 'post_process': []}
+ _pps = {k: [] for k in POSTPROCESS_WHEN}
_printed_messages = set()
_first_webpage_request = True
_download_retcode = None
@@ -525,7 +526,7 @@ class YoutubeDL(object):
params = {}
self._ies = {}
self._ies_instances = {}
- self._pps = {'pre_process': [], 'before_dl': [], 'after_move': [], 'post_process': []}
+ self._pps = {k: [] for k in POSTPROCESS_WHEN}
self._printed_messages = set()
self._first_webpage_request = True
self._post_hooks = []