mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 14:24:03 -07:00
check_output is only supported by Python 2.7 onwards
This commit is contained in:
parent
902b2a0a45
commit
890d070d94
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue