use all flag to check drives

This commit is contained in:
mungai-njoroge
2023-11-14 12:54:28 +03:00
parent 5f1bb28f5d
commit 1d71ba856b
5 changed files with 26 additions and 8 deletions
+5 -1
View File
@@ -143,7 +143,11 @@ def get_extras(filepath: str, keys: list[str]):
"""
Get extra tags from an audio file.
"""
tags = TinyTag.get(filepath)
try:
tags = TinyTag.get(filepath)
except Exception:
return [""] * len(keys)
extras = tags.extra
return [extras.get(key, "").strip() for key in keys]