1
0
Fork 0

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
1 changed files with 2 additions and 0 deletions

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