Esempio n. 1
0
File: ogg.py Progetto: Pretz/pyify
def getMetadata(path):
   command = ["vorbiscomment", "-l", path]
   p = subprocess.Popen(command, stdout=subprocess.PIPE)
   tags = util.tagdict(p.stdout.readlines())
   p.wait()

   return tags
Esempio n. 2
0
File: flac.py Progetto: joshk0/pyify
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