From 191200bd0e141217da397f25248d86f5e35f06c0 Mon Sep 17 00:00:00 2001 From: Marvin Schenkel Date: Wed, 18 Sep 2024 23:34:12 +0200 Subject: [PATCH] Fix: Disable shuffle for radio mode (#1673) Disable shuffle for radio mode --- music_assistant/server/controllers/player_queues.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/music_assistant/server/controllers/player_queues.py b/music_assistant/server/controllers/player_queues.py index 962cdc6a3..de35d390c 100644 --- a/music_assistant/server/controllers/player_queues.py +++ b/music_assistant/server/controllers/player_queues.py @@ -447,7 +447,8 @@ async def play_media( else: cur_index = queue.current_index or 0 insert_at_index = cur_index + 1 if self._queue_items.get(queue_id) else 0 - shuffle = queue.shuffle_enabled and len(queue_items) > 1 + # Radio modes are already shuffled in a pattern we would like to keep. + shuffle = queue.shuffle_enabled and len(queue_items) > 1 and not radio_mode # handle replace: clear all items and replace with the new items if option == QueueOption.REPLACE: