From: Marcel van der Veldt Date: Sun, 9 Mar 2025 18:43:38 +0000 (+0100) Subject: Fix: check for none value in mutagen tags X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=58891f90c01784aa8479b09bc3c7429dfe4f2d7b;p=music-assistant-server.git Fix: check for none value in mutagen tags --- 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