From 6f57cff031df144cdf1764c794a40b5f64ca7851 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 27 Mar 2023 13:02:34 +0200 Subject: [PATCH] detect live version from releasetype tag --- music_assistant/server/helpers/tags.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/music_assistant/server/helpers/tags.py b/music_assistant/server/helpers/tags.py index 8ea4fd32..b962f5ef 100644 --- a/music_assistant/server/helpers/tags.py +++ b/music_assistant/server/helpers/tags.py @@ -83,7 +83,12 @@ class AudioTags: """Return version tag (as-is).""" if tag := self.tags.get("version"): return tag - if (tag := self.tags.get("album_type")) and "live" in tag.lower(): + album_type_tag = ( + self.tags.get("musicbrainzalbumtype") + or self.tags.get("albumtype") + or self.tags.get("releasetype") + ) + if album_type_tag and "live" in tag.lower(): # yes, this can happen return "Live" return "" -- 2.34.1