0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-29 01:51:06 +00:00

[downloader/curl] Fix progress reporting

Bug in 8c53322cda
Closes #6490
This commit is contained in:
pukkandan 2023-03-09 21:57:44 +05:30
parent 3588be59ce
commit 66aeaac9aa
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

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