Merge pull request #740 from kelciour/mpv-restart-fix
Fix no sound after restarting mpv
This commit is contained in:
commit
5d8c9c8948
@ -335,6 +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")
|
||||
|
Loading…
Reference in New Issue
Block a user