From a1a7c76dc94c6ae65cd2394b03762db93e1762b7 Mon Sep 17 00:00:00 2001
From: jvoisin <julien.voisin@dustri.org>
Date: Tue, 14 Dec 2021 23:30:13 +0100
Subject: [PATCH] Make mat2 more robust wrt. weird audio files

---
 libmat2/audio.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmat2/audio.py b/libmat2/audio.py
index 3f3a757..09e1146 100644
--- a/libmat2/audio.py
+++ b/libmat2/audio.py
@@ -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:
-- 
GitLab