Skip to content

A feature-rich command-line audio/video downloader

[downloader/curl] Fix progress reporting

pukkandan66aeaac9aa30
diff --git a/yt_dlp/downloader/external.py b/yt_dlp/downloader/external.py
index 5f54017a81..ee130c8270 100644
--- a/yt_dlp/downloader/external.py
+++ b/yt_dlp/downloader/external.py
@@ -176,7 +176,7 @@ class ExternalFD(FragmentFD):
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):