Compare commits

..

1 Commits

Author SHA1 Message Date
6fcc2d35f8 add hacky fix for radio stopping 2020-02-21 00:02:20 -05:00

View File

@ -12,10 +12,8 @@ const poll = () => {
const { stdout } = spawnSync('mpc', ['status'])
console.log('testing for radio stop:', stdout.toString())
const nowPlaying = stdout.toString()
if (nowPlaying === playing) {
console.log('Song stopped playing. Skipping.')
spawnSync('mpc', ['next'])
} else playing === nowPlaying
if (nowPlaying === playing) spawnSync('mpc', ['next'])
else playing === nowPlaying
}
const getCurrentTrack = () => {