Chore: Add a bit of extra logging for group player when resyncing
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 18 Feb 2025 20:57:05 +0000 (21:57 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 18 Feb 2025 20:57:05 +0000 (21:57 +0100)
music_assistant/providers/player_group/__init__.py

index 792fba029c692158d36d49d08be4fc2d1143b490..dacb063309bbdbed1b0a97fe4779cd44abb0e615 100644 (file)
@@ -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