From 85a75c892045b68786f40594fa37f7cb9ffdfa69 Mon Sep 17 00:00:00 2001 From: duangsuse Date: Sat, 25 Apr 2020 13:54:18 +0800 Subject: [PATCH] Tool: lrc_merge default -sep choosing bug fix --- lrc_merge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lrc_merge.py b/lrc_merge.py index 4d7bf74..65538f8 100755 --- a/lrc_merge.py +++ b/lrc_merge.py @@ -60,7 +60,7 @@ def header(t, surr): return "%s%02i:%02i.%02i%s" %(surr[0], t/60, t%60, t%1.0 * def formatLine(line): (t_fst, s_fst) = line[0] fmtFst = header(t_fst, surr1)+s_fst - sep1 = cfgOrDefault(sep, sepDeft, line) + sep1 = cfgOrDefault(sep, sepDeft, map(lambda note: note[1], line)) return fmtFst +sep1+ sep1.join([header(t, surr2) + s for (t, s) in line[1:]]) return linesep.join(map(formatLine, lrc_lines))