Fix shuffle not shuffling entire queue (#589)
authorMarvin Schenkel <marvinschenkel@gmail.com>
Tue, 28 Mar 2023 18:27:56 +0000 (20:27 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Mar 2023 18:27:56 +0000 (20:27 +0200)
Fix shuffle not shuffling entire queue.

music_assistant/server/controllers/player_queues.py

index 165d50b2dc96300e8580c4adfe44e73f28584aff..629e4a4487dfa323feab40c2d0b0c1f4b813ce5a 100755 (executable)
@@ -651,7 +651,7 @@ class PlayerQueuesController:
 
         # if keep_remaining, append the old previous items
         if keep_remaining:
-            next_items += prev_items[insert_at_index:]
+            next_items += self._queue_items[queue_id][insert_at_index:]
 
         # we set the original insert order as attribute so we can un-shuffle
         for index, item in enumerate(next_items):