aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-01-01 17:01:48 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-01-01 17:01:48 +0530
commit193fb150b76c4aaf41fb2c98b073e7e1f8a108f0 (patch)
tree5110e7089aa62869782cdf5d0f139ebfeee78a7e
parent26fdfc3704a278acada27cc420d67c6d3f71423b (diff)
downloadhypervideo-pre-193fb150b76c4aaf41fb2c98b073e7e1f8a108f0.tar.lz
hypervideo-pre-193fb150b76c4aaf41fb2c98b073e7e1f8a108f0.tar.xz
hypervideo-pre-193fb150b76c4aaf41fb2c98b073e7e1f8a108f0.zip
Fix bug in 119e40ef64b25f66a39246e87ce6c143cd34276d
-rw-r--r--yt_dlp/YoutubeDL.py3
-rw-r--r--yt_dlp/__init__.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 866d069b7..8ce71a2dc 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -3460,7 +3460,8 @@ class YoutubeDL:
return infodict
def run_all_pps(self, key, info, *, additional_pps=None):
- self._forceprint(key, info)
+ if key != 'video':
+ self._forceprint(key, info)
for pp in (additional_pps or []) + self._pps[key]:
info = self.run_pp(pp, info)
return info
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py
index 3490816c4..9cb132410 100644
--- a/yt_dlp/__init__.py
+++ b/yt_dlp/__init__.py
@@ -703,7 +703,7 @@ def parse_options(argv=None):
postprocessors = list(get_postprocessors(opts))
- print_only = bool(opts.forceprint) and all(k not in opts.forceprint for k in POSTPROCESS_WHEN[2:])
+ print_only = bool(opts.forceprint) and all(k not in opts.forceprint for k in POSTPROCESS_WHEN[3:])
any_getting = any(getattr(opts, k) for k in (
'dumpjson', 'dump_single_json', 'getdescription', 'getduration', 'getfilename',
'getformat', 'getid', 'getthumbnail', 'gettitle', 'geturl'