Commit 46b3ae16 authored by jvoisin's avatar jvoisin

Fix a crash affecting some mp3 files

parent d0bc7944
Pipeline #44288 failed with stages
in 0 seconds
......@@ -37,6 +37,8 @@ class MP3Parser(MutagenParser):
def get_meta(self) -> Dict[str, Union[str, dict]]:
metadata = {} # type: Dict[str, Union[str, dict]]
meta = mutagen.File(self.filename).tags
if not meta:
return metadata
for key in meta:
if not hasattr(meta[key], 'text'): # pragma: no cover
continue
......
Markdown is supported
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