From 1363fd3e1249b747533d0eda81c09716123e22d0 Mon Sep 17 00:00:00 2001 From: James Robert Date: Mon, 6 Jul 2015 09:35:01 -0400 Subject: [PATCH] fix issue #106 --- pydub/utils.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pydub/utils.py b/pydub/utils.py index dc9230af..b2722af8 100644 --- a/pydub/utils.py +++ b/pydub/utils.py @@ -199,11 +199,14 @@ def mediainfo(filepath): from .audio_segment import AudioSegment - command = "{0} -v quiet -show_format -show_streams {1}".format( + command = [ get_prober_name(), + "-v", "quiet", + "-show_format", + "-show_streams", filepath - ) - output = Popen(command.split(), stdout=PIPE).communicate()[0].decode("utf-8") + ] + output = Popen(command, stdout=PIPE).communicate()[0].decode("utf-8") rgx = re.compile(r"(?:(?P.*?):)?(?P.*?)\=(?P.*?)$") info = {}