Fix: Check for Chromecast groups in DSP compatiblity check (#1886)
authorMaxim Raznatovski <nda.mr43@gmail.com>
Sun, 19 Jan 2025 20:21:23 +0000 (21:21 +0100)
committerGitHub <noreply@github.com>
Sun, 19 Jan 2025 20:21:23 +0000 (21:21 +0100)
Fix: Check for `PlayerType.GROUP` in `is_grouping_preventing_dsp`

music_assistant/helpers/audio.py

index 9a94d6427c6dee5d02751e8024e5ffe82fadd72a..c21bdbaf7505bad00d861dd5ef2dd871dbd7bddf 100644 (file)
@@ -19,6 +19,7 @@ from music_assistant_models.enums import (
     ContentType,
     MediaType,
     PlayerFeature,
+    PlayerType,
     StreamType,
     VolumeNormalizationMode,
 )
@@ -934,6 +935,9 @@ def is_grouping_preventing_dsp(player: Player) -> bool:
         # PlayerGroups have no leader, so having a child count of 1 means
         # the group actually contains only a single player.
         is_multiple_devices = child_count > 1
+    elif player.type == PlayerType.GROUP:
+        # This is an group player external to Music Assistant.
+        is_multiple_devices = True
     else:
         is_multiple_devices = child_count > 0
     return is_multiple_devices and not multi_device_dsp_supported