Update test_wave_parsing.py

Decode ffprobe output before handing over to json
This commit is contained in:
Jamie Hardt
2019-01-03 11:38:00 -08:00
parent 68ccb09f53
commit c88599f4fd

View File

@@ -17,7 +17,8 @@ def ffprobe(path):
process = subprocess.run(arguments, stdin=None, stdout=PIPE, stderr=PIPE)
if process.returncode == 0:
return json.loads(process.stdout)
output_str = process.stdout.decode('utf-8')
return json.loads(output_str)
else:
return None