fix skip track
This commit is contained in:
parent
d4febfeb08
commit
8a39e2dc1e
@ -11,8 +11,7 @@ const getCurrentTrack = () => {
|
||||
}
|
||||
|
||||
const skipTrack = () => {
|
||||
const currentTrack = getCurrentTrack()
|
||||
const track = currentTrack.stdout.toString()
|
||||
const { track } = getCurrentTrack()
|
||||
const { stderr } = spawnSync('mpc', ['next'])
|
||||
return { error: stderr.toString(), skip: track }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user