1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-05 19:35:14 +08:00

check_output is only supported by Python 2.7 onwards

This commit is contained in:
Tailszefox 2012-10-15 14:28:54 +02:00
parent 902b2a0a45
commit 890d070d94

View File

@ -73,7 +73,7 @@ class FFmpegExtractAudioPP(PostProcessor):
def detect_executables():
def executable(exe):
try:
subprocess.check_output([exe, '-version'])
subprocess.Popen([exe, '-version'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0]
except OSError:
return False
return exe