From 1e96357f00f3521698650854bc2fe455b62903a3 Mon Sep 17 00:00:00 2001 From: harry Date: Mon, 15 Apr 2024 17:46:56 +0800 Subject: [PATCH] fix the bug where the last subtitle line was missing --- app/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/utils.py b/app/utils/utils.py index 3a813f0..b7041dc 100644 --- a/app/utils/utils.py +++ b/app/utils/utils.py @@ -188,7 +188,7 @@ def split_string_by_punctuations(s): else: result.append(txt.strip()) txt = "" - + result.append(txt.strip()) # filter empty string result = list(filter(None, result)) return result