Compare commits
1 Commits
6fcc2d35f8
...
85c6a6cbfb
Author | SHA1 | Date | |
---|---|---|---|
85c6a6cbfb |
@ -12,8 +12,10 @@ const poll = () => {
|
||||
const { stdout } = spawnSync('mpc', ['status'])
|
||||
console.log('testing for radio stop:', stdout.toString())
|
||||
const nowPlaying = stdout.toString()
|
||||
if (nowPlaying === playing) spawnSync('mpc', ['next'])
|
||||
else playing === nowPlaying
|
||||
if (nowPlaying === playing) {
|
||||
console.log('Song stopped playing. Skipping.')
|
||||
spawnSync('mpc', ['next'])
|
||||
} else playing === nowPlaying
|
||||
}
|
||||
|
||||
const getCurrentTrack = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user