diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-03 19:06:26 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-03 19:41:08 +0530 |
commit | f46e2f9d929f395b32b52cdab93dde980a5ddaf1 (patch) | |
tree | fc6dbdfd626e74282879a088332ae33efb3aef74 /ytdlp_plugins/postprocessor/sample.py | |
parent | 9c906919aed256fa900ba25b0387649cad3773e2 (diff) | |
download | hypervideo-pre-f46e2f9d929f395b32b52cdab93dde980a5ddaf1.tar.lz hypervideo-pre-f46e2f9d929f395b32b52cdab93dde980a5ddaf1.tar.xz hypervideo-pre-f46e2f9d929f395b32b52cdab93dde980a5ddaf1.zip |
Add key `requested_downloads` in the root `info_dict`
Diffstat (limited to 'ytdlp_plugins/postprocessor/sample.py')
-rw-r--r-- | ytdlp_plugins/postprocessor/sample.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ytdlp_plugins/postprocessor/sample.py b/ytdlp_plugins/postprocessor/sample.py index 551c4bfff..6ba49266e 100644 --- a/ytdlp_plugins/postprocessor/sample.py +++ b/ytdlp_plugins/postprocessor/sample.py @@ -19,6 +19,9 @@ class SamplePluginPP(PostProcessor): elif info.get('filepath'): # PP was called after download (default) filepath = info.get('filepath') self.to_screen(f'Post-processed {filepath!r} with {self._kwargs}') + elif info.get('requested_downloads'): # PP was called after_video + filepaths = [f.get('filepath') for f in info.get('requested_downloads')] + self.to_screen(f'Post-processed {filepaths!r} with {self._kwargs}') else: # PP was called before actual download filepath = info.get('_filename') self.to_screen(f'Pre-processed {filepath!r} with {self._kwargs}') |