From a63eccb3dd0b80b7e012f4fba3eb58502fb37440 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 16 Jan 2020 19:49:43 +1000 Subject: [PATCH] need to strip sounds when FrontSide rendering deferred --- pylib/anki/template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylib/anki/template.py b/pylib/anki/template.py index febb145e1..b4cf77874 100644 --- a/pylib/anki/template.py +++ b/pylib/anki/template.py @@ -35,6 +35,7 @@ import anki from anki import hooks from anki.hooks import runFilter from anki.rsbackend import TemplateReplacementList +from anki.sound import stripSounds def render_card( @@ -70,7 +71,7 @@ def apply_custom_filters( else: # do we need to inject in FrontSide? if node.field_name == "FrontSide" and front_side is not None: - node.current_text = front_side + node.current_text = stripSounds(front_side) field_text = node.current_text for filter_name in node.filters: