[postprocessor] add 'prepare-after' event (#4083)

This commit is contained in:
Mike Fährmann
2023-08-10 21:28:48 +02:00
parent 0ef1fcab20
commit f9fb276e81
2 changed files with 7 additions and 0 deletions

View File

@@ -287,6 +287,10 @@ class DownloadJob(Job):
self.handle_skip()
return
if "prepare-after" in hooks:
for callback in hooks["prepare-after"]:
callback(pathfmt)
if self.sleep:
self.extractor.sleep(self.sleep(), "download")