From: Maxim Raznatovski Date: Sun, 19 Jan 2025 20:21:23 +0000 (+0100) Subject: Fix: Check for Chromecast groups in DSP compatiblity check (#1886) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=89bcb5967950c2c0169c6f71bc2a306bb8b3daf5;p=music-assistant-server.git Fix: Check for Chromecast groups in DSP compatiblity check (#1886) Fix: Check for `PlayerType.GROUP` in `is_grouping_preventing_dsp` --- 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