Explorar o código

Don't use 2.7+ check_output

Philipp Hagemeister %!s(int64=13) %!d(string=hai) anos
pai
achega
073522bc6c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/PostProcessor.py

+ 1 - 1
youtube_dl/PostProcessor.py

@@ -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