Merge branch '2.3.x' into devel

This commit is contained in:
Martin Konecny 2013-02-20 14:42:35 -05:00
commit 168a364da5
2 changed files with 6 additions and 2 deletions

View file

@ -174,7 +174,8 @@ def normalize_mutagen(path):
try:
command = ['silan', '-f', 'JSON', md['path']]
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
out = proc.stdout.read()
out = proc.communicate()[0].strip('\r\n')
info = json.loads(out)
md['cuein'] = info['sound'][0][0]
md['cueout'] = info['sound'][-1][1]