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
Branches
Tags
No related merge requests found
...@@ -24,11 +24,10 @@ class MP3Parser(MutagenParser): ...@@ -24,11 +24,10 @@ class MP3Parser(MutagenParser):
mimetypes = {'audio/mpeg', } mimetypes = {'audio/mpeg', }
def get_meta(self): def get_meta(self):
meta = super().get_meta()
metadata = {} metadata = {}
f = mutagen.File(self.filename) for key in meta:
if f.tags: metadata[key] = meta[key].text
for key in f.tags:
metadata[key] = f.tags[key].text
return metadata return metadata
class OGGParser(MutagenParser): class OGGParser(MutagenParser):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment