Skip to content

A feature-rich command-line audio/video downloader

[get_exe_version] Do version probes with <&-

John Hawkinson00ca7552317b
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 28941673fa..a89ff6908b 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1820,6 +1820,7 @@ def get_exe_version(exe, args=['--version'],
try:
out, _ = subprocess.Popen(
[encodeArgument(exe)] + args,
+ stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()
except OSError:
return False