mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-03-16 04:52:22 +09: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 detect_executables():
|
||||||
def executable(exe):
|
def executable(exe):
|
||||||
try:
|
try:
|
||||||
subprocess.check_output([exe, '-version'])
|
subprocess.Popen([exe, '-version'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0]
|
||||||
except OSError:
|
except OSError:
|
||||||
return False
|
return False
|
||||||
return exe
|
return exe
|
||||||
|
Loading…
Reference in New Issue
Block a user