fix the bug where the last subtitle line was missing

This commit is contained in:
harry
2024-04-15 17:46:56 +08:00
parent 2e58d7ccf2
commit 1e96357f00

View File

@@ -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