summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parsers/audio.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/parsers/audio.py b/src/parsers/audio.py
index c2c52e6..4da298c 100644
--- a/src/parsers/audio.py
+++ b/src/parsers/audio.py
@@ -24,11 +24,10 @@ class MP3Parser(MutagenParser):
24 mimetypes = {'audio/mpeg', } 24 mimetypes = {'audio/mpeg', }
25 25
26 def get_meta(self): 26 def get_meta(self):
27 meta = super().get_meta()
27 metadata = {} 28 metadata = {}
28 f = mutagen.File(self.filename) 29 for key in meta:
29 if f.tags: 30 metadata[key] = meta[key].text
30 for key in f.tags:
31 metadata[key] = f.tags[key].text
32 return metadata 31 return metadata
33 32
34class OGGParser(MutagenParser): 33class OGGParser(MutagenParser):