1
0
Fork 0

Simplify a bit MP3 handling

This commit is contained in:
jvoisin 2018-03-25 16:31:21 +02:00
parent 2eb68928d5
commit aa893e9d61
1 changed files with 3 additions and 4 deletions

View File

@ -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):