aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-06-20 10:48:29 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-06-20 10:48:29 +0530
commit8aa0e7cd96a1e2f315d49744793ae07f6543ce4c (patch)
tree703b6fc8c598d07fa72af85fb66f847b7a8d52c0 /yt_dlp
parent695b28afaa73ee542040b912ecf91f98eef8db1e (diff)
downloadhypervideo-pre-8aa0e7cd96a1e2f315d49744793ae07f6543ce4c.tar.lz
hypervideo-pre-8aa0e7cd96a1e2f315d49744793ae07f6543ce4c.tar.xz
hypervideo-pre-8aa0e7cd96a1e2f315d49744793ae07f6543ce4c.zip
[docs] Improvements
Diffstat (limited to 'yt_dlp')
-rw-r--r--yt_dlp/YoutubeDL.py1
-rw-r--r--yt_dlp/utils.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index f38697365..2a4c8c883 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -769,6 +769,7 @@ class YoutubeDL:
def add_post_processor(self, pp, when='post_process'):
"""Add a PostProcessor object to the end of the chain."""
+ assert when in POSTPROCESS_WHEN, f'Invalid when={when}'
self._pps[when].append(pp)
pp.set_downloader(self)
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 7614839fb..6abdca788 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -3243,7 +3243,7 @@ def qualities(quality_ids):
return q
-POSTPROCESS_WHEN = ('pre_process', 'after_filter', 'before_dl', 'after_move', 'post_process', 'after_video', 'playlist')
+POSTPROCESS_WHEN = ('pre_process', 'after_filter', 'before_dl', 'post_process', 'after_move', 'after_video', 'playlist')
DEFAULT_OUTTMPL = {