From 58891f90c01784aa8479b09bc3c7429dfe4f2d7b Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sun, 9 Mar 2025 19:43:38 +0100 Subject: [PATCH] Fix: check for none value in mutagen tags --- music_assistant/helpers/tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/helpers/tags.py b/music_assistant/helpers/tags.py index 3d86d080..7d8d2354 100644 --- a/music_assistant/helpers/tags.py +++ b/music_assistant/helpers/tags.py @@ -537,7 +537,7 @@ def parse_tags_mutagen(input_file: str) -> dict[str, Any]: try: # TODO: extend with more tags and file types! tags = mutagen.File(input_file) - if tags is None: + if tags is None or not tags.tags: return result tags = dict(tags.tags) # ID3 tags -- 2.34.1