Updates faster woohoo!
This commit is contained in:
parent
4c8dba8723
commit
4a9dd40fee
1 changed files with 6 additions and 0 deletions
6
index.js
6
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)
|
||||
|
|
Loading…
Reference in a new issue