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

Make mat2 more robust wrt. weird audio files

This commit is contained in:
jvoisin 2021-12-14 23:30:13 +01:00
parent 01b39aa68c
commit a1a7c76dc9

View File

@ -21,7 +21,7 @@ class MutagenParser(abstract.AbstractParser):
def get_meta(self) -> Dict[str, Union[str, dict]]: def get_meta(self) -> Dict[str, Union[str, dict]]:
f = mutagen.File(self.filename) f = mutagen.File(self.filename)
if f.tags: if f.tags:
return {k:', '.join(v) for k, v in f.tags.items()} return {k:', '.join(map(str, v)) for k, v in f.tags.items()}
return {} return {}
def remove_all(self) -> bool: def remove_all(self) -> bool: