From: Marcel van der Veldt Date: Mon, 27 Mar 2023 11:02:34 +0000 (+0200) Subject: detect live version from releasetype tag X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=6f57cff031df144cdf1764c794a40b5f64ca7851;p=music-assistant-server.git detect live version from releasetype tag --- 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 ""