From 420d17be1f42de06448026df78688a959e5fe8b3 Mon Sep 17 00:00:00 2001 From: Florrie Date: Wed, 29 May 2019 11:49:29 -0300 Subject: Always reumse when playing a new track This behavior got changed recently, where the player being paused would carry through across tracks. It no longer does that. --- players.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'players.js') diff --git a/players.js b/players.js index a1a3a13..2f7a574 100644 --- a/players.js +++ b/players.js @@ -11,6 +11,7 @@ class Player extends EventEmitter { this.disablePlaybackStatus = false this.isLooping = false + this.isPaused = false this.volume = 100 } @@ -62,9 +63,6 @@ module.exports.MPVPlayer = class extends Player { if (this.isLooping) { opts.unshift('--loop') } - if (this.isPaused) { - opts.unshift('--pause') - } opts.unshift('--volume', this.volume) return opts } @@ -73,6 +71,7 @@ module.exports.MPVPlayer = class extends Player { // The more powerful MPV player. MPV is virtually impossible for a human // being to install; if you're having trouble with it, try the SoX player. + this.isPaused = false this.process = spawn('mpv', this.getMPVOptions(file)) let lastPercent = 0 -- cgit 1.3.0-6-gf8a5