This commit is contained in:
jb-alvarado 2021-02-05 09:38:49 +01:00
parent c1975ecd61
commit 2512bfbc1f

View File

@ -17,5 +17,5 @@ def filter(probe, node=None):
font = f":fontfile='{_text.fontfile}'" font = f":fontfile='{_text.fontfile}'"
if _text.text_from_filename: if _text.text_from_filename:
escape = title.replace("'", "'\\\\\\''") escape = title.replace("'", "'\\\\\\''").replace("%", "\\\\\\%")
return f"drawtext=text='{escape}':{_text.style}{font}" return f"drawtext=text='{escape}':{_text.style}{font}"