def getMetadata(path): command = ["vorbiscomment", "-l", path] p = subprocess.Popen(command, stdout=subprocess.PIPE) tags = util.tagdict(p.stdout.readlines()) p.wait() return tags
def getMetadata(path): command = ["metaflac", "--no-utf8-convert", "--export-tags-to=-", path] p = subprocess.Popen(command, stdout=subprocess.PIPE) tags = util.tagdict(p.stdout.readlines()) p.wait() return tags