Fix: flow mode not being applied in all cases (while it should) (#1672)
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 17 Sep 2024 22:11:41 +0000 (00:11 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Sep 2024 22:11:41 +0000 (00:11 +0200)
Fix for flow mode incorrectly enforced

music_assistant/server/controllers/player_queues.py

index 65e22d8a12f43d99f0cc27e929464b356131e537..962cdc6a3729257394be7a4a0fc95b55b70449a7 100644 (file)
@@ -780,11 +780,8 @@ class PlayerQueuesController(CoreController):
         queue.current_index = index
         queue.index_in_buffer = index
         queue.flow_mode_start_index = index
-        player_needs_flow_mode = await self.mass.config.get_player_config_value(
-            queue_id, CONF_FLOW_MODE
-        )
+        queue.flow_mode = await self.mass.config.get_player_config_value(queue_id, CONF_FLOW_MODE)
         next_index = self._get_next_index(queue_id, index, allow_repeat=False)
-        queue.flow_mode = player_needs_flow_mode and next_index is not None
         queue.stream_finished = False
         queue.end_of_track_reached = False