aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/YoutubeDL.py
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/YoutubeDL.py
parent695b28afaa73ee542040b912ecf91f98eef8db1e (diff)
[docs] Improvements
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py1
1 files changed, 1 insertions, 0 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)