From ef55c0a2ee17f19e2fe30490f29f53a86603320d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 23 Jun 2020 14:30:42 +1000 Subject: [PATCH] remove the script-message commands that older mpv version don't support https://github.com/ankitects/anki/pull/671#issuecomment-647798343 --- qt/aqt/sound.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index b9b45164a..5c8634308 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -338,7 +338,6 @@ class MpvManager(MPV, SoundOrVideoPlayer): assert isinstance(tag, SoundOrVideoTag) self._on_done = on_done path = os.path.join(os.getcwd(), tag.filename) - self.command("script-message", "osc-visibility", "never", "no-osd") self.command("loadfile", path, "append-play") gui_hooks.av_player_did_begin_playing(self, tag) @@ -355,9 +354,6 @@ class MpvManager(MPV, SoundOrVideoPlayer): if val and self._on_done: self._on_done() - def on_start_file(self) -> None: - self.command("script-message", "osc-visibility", "auto", "no-osd") - def shutdown(self) -> None: self.close()