Fix metadata hanging when flow mode is enforced. (#2778)
authorMarvin Schenkel <marvinschenkel@gmail.com>
Tue, 9 Dec 2025 13:37:14 +0000 (14:37 +0100)
committerGitHub <noreply@github.com>
Tue, 9 Dec 2025 13:37:14 +0000 (14:37 +0100)
music_assistant/providers/sonos/player.py

index 8f6f7efea999ca404f4fa125518578f0e0046da6..5a539f8cb0826a971ed405d850193977cb826dcb 100644 (file)
@@ -384,7 +384,9 @@ class SonosPlayer(Player):
         if media.source_id:
             await self._set_sonos_queue_from_mass_queue(media.source_id)
 
-        if (media.source_id and media.queue_item_id) or media.media_type == MediaType.PLUGIN_SOURCE:
+        if (
+            not self.flow_mode and media.source_id and media.queue_item_id
+        ) or media.media_type == MediaType.PLUGIN_SOURCE:
             # Regular Queue item playback
             # create a sonos cloud queue and load it
             cloud_queue_url = f"{self.mass.streams.base_url}/sonos_queue/v2.3/"