From d14770b5f5ec8aaa350d7b235a6c4e5d40dd9a2d Mon Sep 17 00:00:00 2001 From: Florrie Date: Tue, 4 Feb 2020 21:54:50 -0400 Subject: misc minor mpv player stuff --- players.js | 10 ++++------ 1 file 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})) } }) -- cgit 1.3.0-6-gf8a5