]> jfr.im git - yt-dlp.git/commitdiff
Fix bug in 119e40ef64b25f66a39246e87ce6c143cd34276d
authorpukkandan <redacted>
Sun, 1 Jan 2023 11:31:48 +0000 (17:01 +0530)
committerpukkandan <redacted>
Sun, 1 Jan 2023 11:31:48 +0000 (17:01 +0530)
yt_dlp/YoutubeDL.py
yt_dlp/__init__.py

index 866d069b76b472bf598fc21fb515a93575f7b7c1..8ce71a2dc637a15d558f3538c30e6291b29c24a3 100644 (file)
@@ -3460,7 +3460,8 @@ def run_pp(self, pp, infodict):
         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
index 3490816c4c242cfd7d0ed233a2cd9d395a70fad6..9cb1324105791ae3df5b39160790556ddd7f4cfc 100644 (file)
@@ -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'