1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 08:34:32 +01:00

[utils] Clarify for redirecting STDIN in get_exe_version()

This commit is contained in:
Yen Chi Hsuan 2016-10-22 13:04:05 +08:00
parent 00ca755231
commit b64d04c119
No known key found for this signature in database
GPG Key ID: 3FDDD575826C5C30

View File

@ -1818,6 +1818,9 @@ def get_exe_version(exe, args=['--version'],
""" Returns the version of the specified executable,
or False if the executable is not present """
try:
# STDIN should be redirected too. On UNIX-like systems, ffmpeg triggers
# SIGTTOU if youtube-dl is run in the background.
# See https://github.com/rg3/youtube-dl/issues/955#issuecomment-209789656
out, _ = subprocess.Popen(
[encodeArgument(exe)] + args,
stdin=subprocess.PIPE,