mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-22 22:47:55 +01:00
Merge branch 'johnhawkinson-stdin2'
This commit is contained in:
commit
e034cbc581
@ -1,3 +1,9 @@
|
|||||||
|
version <unreleased>
|
||||||
|
|
||||||
|
Core
|
||||||
|
* Running youtube-dl in the background is fixed (#10996, #10706, #955)
|
||||||
|
|
||||||
|
|
||||||
version 2016.10.21.1
|
version 2016.10.21.1
|
||||||
|
|
||||||
Extractors
|
Extractors
|
||||||
|
@ -1818,8 +1818,12 @@ def get_exe_version(exe, args=['--version'],
|
|||||||
""" Returns the version of the specified executable,
|
""" Returns the version of the specified executable,
|
||||||
or False if the executable is not present """
|
or False if the executable is not present """
|
||||||
try:
|
try:
|
||||||
|
# STDIN should be redirected too. On UNIX-like systems, ffmpeg triggers
|
||||||
|
# SIGTTOU if youtube-dl is run in the background.
|
||||||
|
# See https://github.com/rg3/youtube-dl/issues/955#issuecomment-209789656
|
||||||
out, _ = subprocess.Popen(
|
out, _ = subprocess.Popen(
|
||||||
[encodeArgument(exe)] + args,
|
[encodeArgument(exe)] + args,
|
||||||
|
stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()
|
stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()
|
||||||
except OSError:
|
except OSError:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user