From c8cb320d4d626b98097340e315e297eae292e34f Mon Sep 17 00:00:00 2001 From: j Date: Wed, 15 Nov 2023 11:01:51 +0100 Subject: [PATCH] stop on error --- player/player.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/player/player.py b/player/player.py index de97dd3..a934e81 100755 --- a/player/player.py +++ b/player/player.py @@ -234,7 +234,10 @@ def main(): player = Sync(mode=args.mode, playlist=args.playlist, fullscreen=not args.window) while player.active: - player.mpv.wait_for_playback() + try: + player.mpv.wait_for_playback() + except: + break player.stop()