Skip to content

Commit

Permalink
fix a glitch when extracting texts
Browse files Browse the repository at this point in the history
  • Loading branch information
imakira committed Oct 9, 2024
1 parent 77daeb8 commit 9bf89d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Otherwise, the new predicate compares x and y using NEXT-PREDICATE."
(defun to-tuples (subtitle-str)
(let ((timestamps-header-regex (ppcre:create-scanner
"(\\d{2}):(\\d{2}):(\\d{2})[\\.,](\\d+)\\s+-->\\s+(\\d{2}):(\\d{2}):(\\d{2})[\\.,](\\d+).*"))
(delimiter-regex (ppcre:create-scanner "[\\r\\n]{1,2}[\\r\\n]{1,2}" )))
(delimiter-regex (ppcre:create-scanner "(\\r\\r|\\n\\n|\\r\\n\\r\\n)" )))
(labels ((calculate-timestamp (h m s ms)
(+ (* (+ (* (+ (* 60 h) m) 60) s) 1000) ms))
(calcul (start result)
Expand Down

0 comments on commit 9bf89d0

Please sign in to comment.