From 5cc0cc924ec8a00c3b7d57b203fc32175525d7a1 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 18 Feb 2025 21:57:05 +0100 Subject: [PATCH] Chore: Add a bit of extra logging for group player when resyncing --- music_assistant/providers/player_group/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/music_assistant/providers/player_group/__init__.py b/music_assistant/providers/player_group/__init__.py index 792fba02..dacb0633 100644 --- a/music_assistant/providers/player_group/__init__.py +++ b/music_assistant/providers/player_group/__init__.py @@ -705,6 +705,7 @@ class PlayerGroupProvider(PlayerProvider): # this is the sync leader, unsync all its childs! # NOTE that some players/providers might support this in a less intrusive way # but for now we just ungroup all childs to keep thinngs universal + self.logger.info("Detected ungroup of sync leader, ungrouping all childs") async with TaskManager(self.mass) as tg: for sync_child_id in child_player.group_childs: if sync_child_id == child_player.player_id: @@ -717,6 +718,7 @@ class PlayerGroupProvider(PlayerProvider): if is_sync_leader and was_playing and group_player.powered: # ungrouping the sync leader stops the group so we need to resume + self.logger.info("Resuming group after ungrouping of sync leader") task_id = f"resync_group_{group_player.player_id}" self.mass.call_later( 2, self.mass.players.cmd_play(group_player.player_id), task_id=task_id -- 2.34.1