mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-03 08:19:57 +01:00
Don't use 2.7+ check_output
This commit is contained in:
parent
9248cb0549
commit
073522bc6c
@ -73,7 +73,7 @@ def __init__(self, downloader=None, preferredcodec=None, preferredquality=None,
|
|||||||
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.PIPE).communicate()
|
||||||
except OSError:
|
except OSError:
|
||||||
return False
|
return False
|
||||||
return exe
|
return exe
|
||||||
|
Loading…
Reference in New Issue
Block a user