diff --git a/anki/sound.py b/anki/sound.py index c1931028d..2e6e47cc5 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -11,7 +11,11 @@ from anki.utils import namedtmp, tmpdir, isWin, isMac ########################################################################## def playFromText(text): + fnames = {} for match in re.findall("\[sound:(.*?)\]", text): + if match in fnames: + continue + fnames[match] = True play(match) def stripSounds(text):