detect live version from releasetype tag
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 27 Mar 2023 11:02:34 +0000 (13:02 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 27 Mar 2023 11:02:34 +0000 (13:02 +0200)
music_assistant/server/helpers/tags.py

index 8ea4fd323bbb056bbc36a619664692aecef2376e..b962f5ef8f52da622a0b93afa970ec9a9eff9ebb 100644 (file)
@@ -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 ""