From: Chris Fulljames Date: Sun, 2 Mar 2025 01:44:32 +0000 (-0500) Subject: Prevent player from looping X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=042f87d32c567889913c47aef8dad5f277992b1e;p=littlesongplace.git Prevent player from looping --- 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