Simplify a bit MP3 handling
This commit is contained in:
parent
2eb68928d5
commit
aa893e9d61
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user