fix: correctly refresh streamdetails in group/ungroup scenarios (#1929)
authorMaxim Raznatovski <nda.mr43@gmail.com>
Sat, 1 Feb 2025 16:39:15 +0000 (17:39 +0100)
committerGitHub <noreply@github.com>
Sat, 1 Feb 2025 16:39:15 +0000 (17:39 +0100)
This fixes a bug, where change detection wasn't working when the output
format is not known. This is for example the case with any grouped child
of a player provider that does not support multi device dsp.

music_assistant/controllers/player_queues.py

index 70dc2d87f7ed6fdf4fa88830cd69fef60c6859b1..4e9c5ede9295d76d057333ead1ece1e1af68093f 100644 (file)
@@ -980,6 +980,8 @@ class PlayerQueuesController(CoreController):
         for child_id in player.group_childs:
             if (child := self.mass.players.get(child_id)) and child.output_format:
                 output_formats.append(child.output_format.output_format_str)
+            else:
+                output_formats.append("unknown")
 
         # basic throttle: do not send state changed events if queue did not actually change
         new_state = CompareState(