From 5c1d0087de86c597752c12d6af07e68dcd8673fa Mon Sep 17 00:00:00 2001 From: Luc Mcgrady Date: Sun, 23 Nov 2025 08:09:40 +0000 Subject: [PATCH] Revert: sound.py changes --- qt/aqt/sound.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index 2a2169079..2caf1649b 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -925,8 +925,11 @@ def play_clicked_audio(pycmd: str, card: Card) -> None: """eg. if pycmd is 'play:q:0', play the first audio on the question side.""" play, context, str_idx = pycmd.split(":") idx = int(str_idx) - tags = card.question_av_tags() if context == "q" else card.answer_av_tags() - play_tags([tags[idx]]) + if context == "q": + tags = card.question_av_tags() + else: + tags = card.answer_av_tags() + av_player.play_tags([tags[idx]]) play_tags = av_player.play_tags