From 435021536b84ce79eb36bf83f27579e93523cdd9 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sun, 1 Nov 2020 03:19:21 +0000 Subject: [PATCH] Resume playing after output switch. --- player.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/player.py b/player.py index b2932ea..82adb54 100644 --- a/player.py +++ b/player.py @@ -194,6 +194,7 @@ class Player(): self.state.update("paused", False) def output(self, name=None): + wasPlaying = self.state.state["playing"] self.quit() self.state.update("output", name) try: @@ -205,6 +206,10 @@ class Player(): return False self.load(self.state.state["filename"]) + + if wasPlaying: + self.unpause() + return True def _updateState(self, pos=None):