Don't use 2.7+ check_output
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 19 Oct 2012 21:28:37 +0000 (23:28 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 19 Oct 2012 21:28:37 +0000 (23:28 +0200)
youtube_dl/PostProcessor.py

index f2e2aa1fadf5e8c8c1962ef11851820802550ce0..d14fe71a2b2fce124c8d5b8bbafeb0a0d1e7a83a 100644 (file)
@@ -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