Skip to content

Commit

Permalink
fix issue #106
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaaro committed Jul 6, 2015
1 parent 05c05e3 commit 1363fd3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pydub/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<inner_dict>.*?):)?(?P<key>.*?)\=(?P<value>.*?)$")
info = {}
Expand Down

0 comments on commit 1363fd3

Please sign in to comment.