diff --git a/README.md b/README.md index f111d01..318b913 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,16 @@ app.post("/music/playpause",(req,res) => { app.post("/music/next",(req,res) => { console.log("skipping to next song") exec('echo playlist-next | socat - "/tmp/mpvsocket"') - res.redirect(302, req.get("referer")); + setTimeout(function() { + res.redirect(302, req.get("referer")); + }, 750); }); app.post("/music/prev",(req,res) => { console.log("going back to previous song") exec('echo playlist-prev | socat - "/tmp/mpvsocket"') - res.redirect(302, req.get("referer")); + setTimeout(function() { + res.redirect(302, req.get("referer")); + }, 750); }); ```