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:
parent
902b2a0a45
commit
890d070d94
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user