Beispiel #1
0
def getMetadata(path):
   command = ["vorbiscomment", "-l", path]
   p = subprocess.Popen(command, stdout=subprocess.PIPE)
   tags = util.tagdict(p.stdout.readlines())
   p.wait()

   return tags
Beispiel #2
0
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