fix the bug where the last subtitle line was missing
This commit is contained in:
@@ -188,7 +188,7 @@ def split_string_by_punctuations(s):
|
|||||||
else:
|
else:
|
||||||
result.append(txt.strip())
|
result.append(txt.strip())
|
||||||
txt = ""
|
txt = ""
|
||||||
|
result.append(txt.strip())
|
||||||
# filter empty string
|
# filter empty string
|
||||||
result = list(filter(None, result))
|
result = list(filter(None, result))
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user