subprocess.call
returns an integer (the exit code), not the output.
Use the stdout
argument, and call Popen.communicate()
:
pipe = subprocess.Popen(
["metaflac", "--show-tag=title", filename], stdout=subprocess.PIPE)
title, error = pipe.communicate()