mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
remove mpv keybindings on init
On a machine here, they cause the following error: raise MPVCommandError("%r: %s" % (message["command"], e)) aqt.mpv.MPVCommandError: ['keybind', 'q', 'stop']: invalid parameter
This commit is contained in:
parent
f24321dc65
commit
c3e007f069
1 changed files with 0 additions and 8 deletions
|
@ -333,14 +333,6 @@ class MpvManager(MPV, SoundOrVideoPlayer):
|
|||
self._on_done: Optional[OnDoneCallback] = None
|
||||
self.default_argv += ["--config-dir=" + base_path]
|
||||
super().__init__(window_id=None, debug=False)
|
||||
self.init()
|
||||
|
||||
def init(self) -> None:
|
||||
self.command("keybind", "q", "stop")
|
||||
self.command("keybind", "Q", "stop")
|
||||
self.command("keybind", "CLOSE_WIN", "stop")
|
||||
self.command("keybind", "ctrl+w", "stop")
|
||||
self.command("keybind", "ctrl+c", "stop")
|
||||
|
||||
def play(self, tag: AVTag, on_done: OnDoneCallback) -> None:
|
||||
assert isinstance(tag, SoundOrVideoTag)
|
||||
|
|
Loading…
Reference in a new issue