mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -05:00
Revert: sound.py changes
This commit is contained in:
parent
6a251464b2
commit
5c1d0087de
1 changed files with 5 additions and 2 deletions
|
|
@ -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."""
|
"""eg. if pycmd is 'play:q:0', play the first audio on the question side."""
|
||||||
play, context, str_idx = pycmd.split(":")
|
play, context, str_idx = pycmd.split(":")
|
||||||
idx = int(str_idx)
|
idx = int(str_idx)
|
||||||
tags = card.question_av_tags() if context == "q" else card.answer_av_tags()
|
if context == "q":
|
||||||
play_tags([tags[idx]])
|
tags = card.question_av_tags()
|
||||||
|
else:
|
||||||
|
tags = card.answer_av_tags()
|
||||||
|
av_player.play_tags([tags[idx]])
|
||||||
|
|
||||||
|
|
||||||
play_tags = av_player.play_tags
|
play_tags = av_player.play_tags
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue