Add comment

This commit is contained in:
Damien Elmes 2020-08-21 11:10:30 +10:00 committed by GitHub
parent 580e561805
commit 54f8a7ded5

View file

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