From: Marcel van der Veldt Date: Tue, 18 Feb 2025 20:57:05 +0000 (+0100) Subject: Chore: Add a bit of extra logging for group player when resyncing X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=5cc0cc924ec8a00c3b7d57b203fc32175525d7a1;p=music-assistant-server.git Chore: Add a bit of extra logging for group player when resyncing --- 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