Commit 143bb0a5 authored by jvoisin's avatar jvoisin
Browse files

Add a check for weird audio files, instead of crashing

parent a1a7c76d
......@@ -41,6 +41,9 @@ class MP3Parser(MutagenParser):
if not meta:
return metadata
for key in meta:
if isinstance(key, tuple):
metadata[key[0]] = key[1]
continue
if not hasattr(meta[key], 'text'): # pragma: no cover
continue
metadata[key.rstrip(' \t\r\n\0')] = ', '.join(map(str, meta[key].text))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment