Skip to content
Snippets Groups Projects
Commit aa893e9d authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Simplify a bit MP3 handling

parent 2eb68928
No related branches found
No related tags found
No related merge requests found
......@@ -24,11 +24,10 @@ class MP3Parser(MutagenParser):
mimetypes = {'audio/mpeg', }
def get_meta(self):
meta = super().get_meta()
metadata = {}
f = mutagen.File(self.filename)
if f.tags:
for key in f.tags:
metadata[key] = f.tags[key].text
for key in meta:
metadata[key] = meta[key].text
return metadata
class OGGParser(MutagenParser):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment