From 2ecd44e09b45e4cbcf33f06c2bf85affc3b7eee6 Mon Sep 17 00:00:00 2001 From: odrling Date: Fri, 18 Oct 2019 17:09:07 +0200 Subject: [PATCH] [automation] fix typo --- automation/autoload/karaoke-adjust-1sec.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automation/autoload/karaoke-adjust-1sec.lua b/automation/autoload/karaoke-adjust-1sec.lua index 73f01afe5..96f49e1f0 100644 --- a/automation/autoload/karaoke-adjust-1sec.lua +++ b/automation/autoload/karaoke-adjust-1sec.lua @@ -13,7 +13,7 @@ ktag = "\\[kK][fo]?%d+" --pattern used to detect karaoke tags -- KM template line definition km_template_effect = "template pre-line all keeptags" -km_templayte_text = '!retime("line",$start < 900 and -$start or -900,200)!{!$start < 900 and "\\\\k" .. ($start/10) or "\\\\k90"!\\fad(!$start < 900 and $start or 300!,200)}' +km_template_text = '!retime("line",$start < 900 and -$start or -900,200)!{!$start < 900 and "\\\\k" .. ($start/10) or "\\\\k90"!\\fad(!$start < 900 and $start or 300!,200)}' function hasleadin(line)--check if there is an existing lead in (2 consecutive bracket with karaoke tags at the start of the line) return line.text:find("^{[^{}]-" .. ktag .. "[^{}]-}%s*{[^{}]-" .. ktag .. "[^{}]-}") @@ -88,7 +88,7 @@ end function is_template_line(line) return (line.class == "dialogue" and line.effect == km_template_effect - and line.text == km_templayte_text) + and line.text == km_template_text) end @@ -163,7 +163,7 @@ function mugenizer(subs) line.start_time = 0 line.end_time = 0 line.effect = km_template_effect - line.text = km_templayte_text + line.text = km_template_text subs.insert(first, line) end end