[docs] Improvements

This commit is contained in:
pukkandan 2022-06-20 10:48:29 +05:30
parent 695b28afaa
commit 8aa0e7cd96
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
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)