From f46e2f9d929f395b32b52cdab93dde980a5ddaf1 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 3 Jan 2022 19:06:26 +0530 Subject: Add key `requested_downloads` in the root `info_dict` --- ytdlp_plugins/postprocessor/sample.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ytdlp_plugins/postprocessor/sample.py') 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}') -- cgit v1.2.3