]> littlesong.place Git - littlesongplace.git/commitdiff
Prevent player from looping
authorChris Fulljames <christianfulljames@gmail.com>
Sun, 2 Mar 2025 01:44:32 +0000 (20:44 -0500)
committerChris Fulljames <christianfulljames@gmail.com>
Sun, 2 Mar 2025 01:44:32 +0000 (20:44 -0500)
static/player.js
todo.txt

index a2dfb7e9d0465ebb902b1a7aa69e612150e2b42d..c879a9769db1b6df233a32cc348be323c72fe2e0 100644 (file)
@@ -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
index c21b51b9e9abd00b3c0be0dbc6198ddf5d17d82b..66208ad63a4500648d59e497f392b7ad77e38128 100644 (file)
--- 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