From 0e94d71672379db2cc80beab13455443f3dc0215 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Wed, 5 Nov 2025 21:36:56 +0100 Subject: [PATCH] Fix typo in active source property --- music_assistant/models/player.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/music_assistant/models/player.py b/music_assistant/models/player.py index 484ae3f0..2a54514b 100644 --- a/music_assistant/models/player.py +++ b/music_assistant/models/player.py @@ -840,11 +840,14 @@ class Player(ABC): # if the player is grouped/synced, use the active source of the group/parent player if parent_player_id := (self.active_group or self.synced_to): if parent_player := self.mass.players.get(parent_player_id): - return parent_player._active_source + return parent_player.active_source for plugin_source in self.mass.players.get_plugin_sources(): if plugin_source.in_use_by == self.player_id: return plugin_source.id - if self.playback_state in (PlaybackState.PLAYING, PlaybackState.PAUSED): + if ( + self.playback_state in (PlaybackState.PLAYING, PlaybackState.PAUSED) + and self._active_source + ): # active source as reported by the player itself # but only if playing/paused, otherwise we always prefer the MA source return self._active_source -- 2.34.1