Fix: Only PlayerGroups of supported players should enable MULTI_DEVICE_DSP (#1864)
authorMaxim Raznatovski <nda.mr43@gmail.com>
Mon, 13 Jan 2025 20:06:08 +0000 (21:06 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Jan 2025 20:06:08 +0000 (21:06 +0100)
Fix: Only PlayerGroups of supported players enable MULTI_DEVICE_DSP

music_assistant/providers/player_group/__init__.py

index 747bb01bbf6ab8873ff6be26adfb02c9482e6c16..ba1a23ab027cb641a51fc7fe47acedf5d4d6fb74 100644 (file)
@@ -665,7 +665,6 @@ class PlayerGroupProvider(PlayerProvider):
         player_features = {
             PlayerFeature.POWER,
             PlayerFeature.VOLUME_SET,
-            PlayerFeature.MULTI_DEVICE_DSP,
         }
 
         if not (self.mass.players.get(x) for x in members):
@@ -685,6 +684,7 @@ class PlayerGroupProvider(PlayerProvider):
                 for x in self.mass.players.providers
                 if x.instance_id != self.instance_id
             }
+            player_features.add(PlayerFeature.MULTI_DEVICE_DSP)
         elif player_provider := self.mass.get_provider(group_type):
             # grab additional details from one of the provider's players
             if TYPE_CHECKING: