From 4a9dd40fee30325219772ff63a97057c4b2019fe Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Mon, 10 Jun 2024 15:50:41 -0500 Subject: [PATCH] Updates faster woohoo! --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 9870f18..a060725 100644 --- a/index.js +++ b/index.js @@ -166,7 +166,13 @@ function socketeer() { if (lastSong != spotify.track_id) { lastSong = spotify.track_id station.addFolder(songPath) + const removeSongs = (list) => list + .filter(track => track.fsStats.fullPath !== songPath); + + station.reorderPlaylist(removeSongs) + station.start() + station.next() } } else { console.log(spotify)