From 8aa0e7cd96a1e2f315d49744793ae07f6543ce4c Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 20 Jun 2022 10:48:29 +0530 Subject: [docs] Improvements --- yt_dlp/YoutubeDL.py | 1 + 1 file changed, 1 insertion(+) (limited to 'yt_dlp/YoutubeDL.py') 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) -- cgit v1.2.3