[docs] Improvements

This commit is contained in:
pukkandan
2022-06-20 10:48:29 +05:30
parent 695b28afaa
commit 8aa0e7cd96
5 changed files with 145 additions and 63 deletions

View File

@@ -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)