summaryrefslogtreecommitdiff
path: root/libmat2
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2')
-rw-r--r--libmat2/audio.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmat2/audio.py b/libmat2/audio.py
index 09e1146..16b86f0 100644
--- a/libmat2/audio.py
+++ b/libmat2/audio.py
@@ -41,6 +41,9 @@ class MP3Parser(MutagenParser):
41 if not meta: 41 if not meta:
42 return metadata 42 return metadata
43 for key in meta: 43 for key in meta:
44 if isinstance(key, tuple):
45 metadata[key[0]] = key[1]
46 continue
44 if not hasattr(meta[key], 'text'): # pragma: no cover 47 if not hasattr(meta[key], 'text'): # pragma: no cover
45 continue 48 continue
46 metadata[key.rstrip(' \t\r\n\0')] = ', '.join(map(str, meta[key].text)) 49 metadata[key.rstrip(' \t\r\n\0')] = ', '.join(map(str, meta[key].text))