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