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