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 @@ 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):