From d04699ad06d7489be5d5f184129475f652a0f7d6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 27 May 2020 09:21:41 +1000 Subject: [PATCH] try mpv on Windows again https://github.com/ankitects/anki/pull/621 --- qt/aqt/sound.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index d605e752c..3a492d9d9 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -630,13 +630,12 @@ def setup_audio(taskman: TaskManager, base_folder: str) -> None: # legacy global var global mpvManager - if not isWin: - try: - mpvManager = MpvManager(base_folder) - except FileNotFoundError: - print("mpv not found, reverting to mplayer") - except aqt.mpv.MPVProcessError: - print("mpv too old, reverting to mplayer") + try: + mpvManager = MpvManager(base_folder) + except FileNotFoundError: + print("mpv not found, reverting to mplayer") + except aqt.mpv.MPVProcessError: + print("mpv too old, reverting to mplayer") if mpvManager is not None: av_player.players.append(mpvManager)