diff options
-rw-r--r-- | players.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/players.js b/players.js index 24372c9..651b519 100644 --- a/players.js +++ b/players.js @@ -66,7 +66,7 @@ module.exports.MPVPlayer = class extends Player { if (this.isPaused) { opts.unshift('--pause') } - opts.unshift('--volume', this.volume) + opts.unshift('--volume=' + this.volume) return opts } @@ -99,13 +99,11 @@ module.exports.MPVPlayer = class extends Player { // have to specify them every time it loops. We do that whenever the // position in the song decreases, since that means it may have // looped. - if (this.isLooping) { - this.sendCommand('set loop yes') - } else { - this.sendCommand('set loop no') - } + this.setLoop(this.isLooping) } + lastPercent = parseInt(percent) + this.printStatusLine(getTimeStrings({curHour, curMin, curSec, lenHour, lenMin, lenSec})) } }) |