mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-22 22:03:21 +08:00
Don't use 2.7+ check_output
This commit is contained in:
parent
9248cb0549
commit
073522bc6c
@ -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.PIPE).communicate()
|
||||
except OSError:
|
||||
return False
|
||||
return exe
|
||||
|
Loading…
Reference in New Issue
Block a user