summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjvoisin2018-03-25 16:31:21 +0200
committerjvoisin2018-03-25 16:31:21 +0200
commitaa893e9d610d7de7ab4147f1197d23b3a2a1bd14 (patch)
tree5da55f5873a81ace76cca4173c1ab446cdfbbe29 /src
parent2eb68928d50935564e7e3c582136bc25d29b432b (diff)
Simplify a bit MP3 handling
Diffstat (limited to 'src')
-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):