aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-02 16:23:20 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-01-03 19:40:05 +0530
commitebed8b373214316fce489fe21629fcef91bb9af3 (patch)
tree06901b187ee0b01709902c02b3dd82ca1bb89e2b /yt_dlp/YoutubeDL.py
parent1e43a6f7336f4d9691dc52a1bc7cfe14ba7a936d (diff)
downloadhypervideo-pre-ebed8b373214316fce489fe21629fcef91bb9af3.tar.lz
hypervideo-pre-ebed8b373214316fce489fe21629fcef91bb9af3.tar.xz
hypervideo-pre-ebed8b373214316fce489fe21629fcef91bb9af3.zip
Add more post-processing stages
playlist = After entire playlist after_video = After downloading all formats of a video
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 5b285e1a1..57c56f882 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -1766,6 +1766,10 @@ class YoutubeDL(object):
for tmpl in self.params['forceprint'].get('playlist', []):
self._forceprint(tmpl, ie_result)
+
+ for pp in self._pps['playlist']:
+ ie_result = self.run_pp(pp, ie_result)
+
self.to_screen('[download] Finished downloading playlist: %s' % playlist)
return ie_result
@@ -2564,6 +2568,10 @@ class YoutubeDL(object):
new_info['__original_infodict'] = info_dict
new_info.update(fmt)
self.process_info(new_info)
+
+ for pp in self._pps['after_video']:
+ info_dict = self.run_pp(pp, info_dict)
+
# We update the info dict with the selected best quality format (backwards compatibility)
if formats_to_download:
info_dict.update(formats_to_download[-1])