diff --git a/subtitle_processor.py b/subtitle_processor.py index 6490091..cce1dd1 100644 --- a/subtitle_processor.py +++ b/subtitle_processor.py @@ -63,6 +63,10 @@ def main(): notes_lines.append('##### ' + lines[i].strip() + " `" + lines[i+1].strip() + "`" + "\n") i+=2 continue + if re.fullmatch(r'(\d{2,}:)*\d{2,}:\d{2,}[,.]\d{3,}\s*-->\s*(\d{2,}:)*\d{2,}:\d{2,}[,.]\d{3,}' , lines[i].strip()): + notes_lines.append('##### ' " `" + lines[i].strip() + "`" + "\n") + i+=1 + continue if has_japanese(lines[i]): print(lines[i]) result = analyze(lines[i],vocab)