Make mat2 more robust wrt. weird audio files
This commit is contained in:
parent
01b39aa68c
commit
a1a7c76dc9
@ -21,7 +21,7 @@ class MutagenParser(abstract.AbstractParser):
|
||||
def get_meta(self) -> Dict[str, Union[str, dict]]:
|
||||
f = mutagen.File(self.filename)
|
||||
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 {}
|
||||
|
||||
def remove_all(self) -> bool:
|
||||
|
Loading…
Reference in New Issue
Block a user