Fix small typo
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 15 Jan 2024 18:36:29 +0000 (19:36 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 15 Jan 2024 18:36:29 +0000 (19:36 +0100)
music_assistant/server/controllers/player_queues.py

index e363d23c4a6e20d8e5e85169998a77aafde0efa3..60de382f85ad15e76b7b1694b3ca9f88544d3667 100755 (executable)
@@ -832,7 +832,7 @@ class PlayerQueuesController(CoreController):
         queue = self._queues[queue_id]
         if cur_index is None:
             cur_index = queue.current_index
-        next_index = self.get_next_index(queue_id, queue.current_index)
+        next_index = self.get_next_index(queue_id, cur_index)
         return self.get_item(queue_id, next_index)
 
     def signal_update(self, queue_id: str, items_changed: bool = False) -> None: