1
0
mirror of synced 2024-11-22 01:04:23 +01:00

Fix a crash affecting some mp3 files

This commit is contained in:
jvoisin 2020-07-22 15:47:35 +02:00
parent d0bc79442b
commit 46b3ae1672

View File

@ -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