Skip to content

Commit

Permalink
Fix: Disable shuffle for radio mode (#1673)
Browse files Browse the repository at this point in the history
Disable shuffle for radio mode
  • Loading branch information
MarvinSchenkel authored Sep 18, 2024
1 parent 1e63a99 commit 191200b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion music_assistant/server/controllers/player_queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 191200b

Please sign in to comment.