]> jfr.im git - yt-dlp.git/commitdiff
[downloader/curl] Fix progress reporting
authorpukkandan <redacted>
Thu, 9 Mar 2023 16:27:44 +0000 (21:57 +0530)
committerpukkandan <redacted>
Thu, 9 Mar 2023 16:28:07 +0000 (21:58 +0530)
Bug in 8c53322cda75394a8d551dde20b2529ee5ad6e89
Closes #6490

yt_dlp/downloader/external.py

index 5f54017a81e37923b99a21c037c54f3054e94921..ee130c82709e17ac19410037e731fd33169a6c7a 100644 (file)
@@ -176,7 +176,7 @@ def _call_downloader(self, tmpfilename, info_dict):
         return 0
 
     def _call_process(self, cmd, info_dict):
-        return Popen.run(cmd, text=True, stderr=subprocess.PIPE)
+        return Popen.run(cmd, text=True, stderr=subprocess.PIPE if self._CAPTURE_STDERR else None)
 
 
 class CurlFD(ExternalFD):