From 10524e17cfd607439aba6fe7a8c77974496e6db7 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 25 Feb 2025 23:36:20 +0100 Subject: [PATCH] Fix: ignore thumbnail stream for tags parsing --- music_assistant/helpers/tags.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/music_assistant/helpers/tags.py b/music_assistant/helpers/tags.py index f5f0fe64..06c8bcb5 100644 --- a/music_assistant/helpers/tags.py +++ b/music_assistant/helpers/tags.py @@ -398,6 +398,8 @@ class AudioTags: # append any tags found in streams (but don't overwrite format tags) tags = {} for stream in [raw["format"]] + raw["streams"]: + if stream.get("codec_type") == "video": + continue for key, value in stream.get("tags", {}).items(): alt_key = key.lower().replace(" ", "").replace("_", "").replace("-", "") if alt_key in tags: -- 2.34.1