From c950745ab4609c5096bfa1facd9c0a097b0f6d74 Mon Sep 17 00:00:00 2001 From: kelciour Date: Thu, 10 Jun 2021 11:17:26 +0300 Subject: [PATCH] keep the internal mpv playlist from growing on https://forums.ankiweb.net/t/audio-tracks-get-clipped-at-the-end/10289/5 --- qt/aqt/sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index ff50fdf21..fdf891328 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -402,7 +402,7 @@ class MpvManager(MPV, SoundOrVideoPlayer): filename = hooks.media_file_filter(tag.filename) path = os.path.join(os.getcwd(), filename) - self.command("loadfile", path, "append-play", "pause=no") + self.command("loadfile", path, "replace", "pause=no") gui_hooks.av_player_did_begin_playing(self, tag) def stop(self) -> None: