Snapcast fix sync to (#1423)
authorSantiago Soto <santiago@soto.uy>
Sat, 29 Jun 2024 09:39:06 +0000 (06:39 -0300)
committerGitHub <noreply@github.com>
Sat, 29 Jun 2024 09:39:06 +0000 (11:39 +0200)
music_assistant/server/providers/snapcast/__init__.py

index b448150f319962e785f40740a1857b6a17297fc3..e67d8d649c71fcef47a4b72dd704ea26680f0abf 100644 (file)
@@ -551,7 +551,7 @@ class SnapCastProvider(PlayerProvider):
     def _synced_to(self, player_id: str) -> str | None:
         """Return player_id of the player this player is synced to."""
         snap_group: Snapgroup = self._get_snapgroup(player_id)
-        master_id: str = self._get_ma_id(player_id)
+        master_id: str = self._get_ma_id(snap_group.clients[0])
 
         if len(snap_group.clients) < 2 or player_id == master_id:
             return None