Skip to content
Snippets Groups Projects
Commit 143bb0a5 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Add a check for weird audio files, instead of crashing

parent a1a7c76d
No related branches found
No related tags found
Loading
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment