From 095df2f6f8c7d4705a8e7c435ba4a1df1836d6b6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 21 Aug 2020 11:10:30 +1000 Subject: [PATCH] Add comment --- qt/aqt/sound.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index 91e17bbbb..6bde715a1 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -335,7 +335,10 @@ class MpvManager(MPV, SoundOrVideoPlayer): super().__init__(window_id=None, debug=False) def on_init(self) -> None: + # if mpv dies and is restarted, tell Anki the + # current file is done self.on_end_file() + try: self.command("keybind", "q", "stop") self.command("keybind", "Q", "stop")