From 89bcb5967950c2c0169c6f71bc2a306bb8b3daf5 Mon Sep 17 00:00:00 2001 From: Maxim Raznatovski Date: Sun, 19 Jan 2025 21:21:23 +0100 Subject: [PATCH] Fix: Check for Chromecast groups in DSP compatiblity check (#1886) Fix: Check for `PlayerType.GROUP` in `is_grouping_preventing_dsp` --- music_assistant/helpers/audio.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/music_assistant/helpers/audio.py b/music_assistant/helpers/audio.py index 9a94d642..c21bdbaf 100644 --- a/music_assistant/helpers/audio.py +++ b/music_assistant/helpers/audio.py @@ -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 -- 2.34.1