From 042f87d32c567889913c47aef8dad5f277992b1e Mon Sep 17 00:00:00 2001 From: Chris Fulljames Date: Sat, 1 Mar 2025 20:44:32 -0500 Subject: [PATCH] Prevent player from looping --- static/player.js | 3 +++ todo.txt | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/static/player.js b/static/player.js index a2dfb7e..c879a97 100644 --- a/static/player.js +++ b/static/player.js @@ -113,6 +113,9 @@ function songPlayPause() { function songNext() { m_songIndex = (m_songIndex + 1) % m_allSongs.length; playCurrentSong(); + if (m_songIndex == 0) { + document.getElementById("player-audio").pause(); + } } // Play the previous song in the queue diff --git a/todo.txt b/todo.txt index c21b51b..66208ad 100644 --- a/todo.txt +++ b/todo.txt @@ -1,7 +1,6 @@ NOW - Pinned profile playlists - Player minimize button -- Loop song list toggle SOON - Break up main.py, test_offline.py -- 2.39.5