mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
simplify audio playing and drop exclude
This commit is contained in:
parent
1860c77b89
commit
fa818afedd
2 changed files with 1 additions and 4 deletions
|
@ -10,7 +10,6 @@ from aqt.qt import *
|
||||||
QtConfig = pyqtconfig.Configuration()
|
QtConfig = pyqtconfig.Configuration()
|
||||||
|
|
||||||
from anki import Collection
|
from anki import Collection
|
||||||
from anki.sound import playFromText, clearAudioQueue, stripSounds
|
|
||||||
from anki.utils import stripHTML, checksum, isWin, isMac, intTime
|
from anki.utils import stripHTML, checksum, isWin, isMac, intTime
|
||||||
from anki.hooks import runHook, addHook, remHook
|
from anki.hooks import runHook, addHook, remHook
|
||||||
import anki.consts
|
import anki.consts
|
||||||
|
|
|
@ -97,12 +97,10 @@ class Reviewer(object):
|
||||||
playFromText(c.q())
|
playFromText(c.q())
|
||||||
elif self.state == "answer":
|
elif self.state == "answer":
|
||||||
txt = ""
|
txt = ""
|
||||||
exclude = c.q()
|
|
||||||
if self._replayq(c):
|
if self._replayq(c):
|
||||||
txt = c.q()
|
txt = c.q()
|
||||||
exclude = ""
|
|
||||||
txt += c.a()
|
txt += c.a()
|
||||||
playFromText(txt, exclude)
|
playFromText(txt)
|
||||||
|
|
||||||
# Initializing the webview
|
# Initializing the webview
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
Loading…
Reference in a new issue