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")